function AS(e,t){for(var A=0;An[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function A(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=A(a);fetch(a.href,s)}})();var aV=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var X0={exports:{}},Mf={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ty;function nS(){if(ty)return Mf;ty=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function A(n,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:e,type:n,key:l,ref:a!==void 0?a:null,props:s}}return Mf.Fragment=t,Mf.jsx=A,Mf.jsxs=A,Mf}var Ay;function rS(){return Ay||(Ay=1,X0.exports=nS()),X0.exports}var Z=rS(),Y0={exports:{}},Rf={},W0={exports:{}},J0={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ny;function iS(){return ny||(ny=1,(function(e){function t(J,se){var X=J.length;J.push(se);e:for(;0>>1,Se=J[me];if(0>>1;mea(M,X))Ga(oe,M)?(J[me]=oe,J[G]=X,me=G):(J[me]=M,J[L]=X,me=L);else if(Ga(oe,X))J[me]=oe,J[G]=X,me=G;else break e}}return se}function a(J,se){var X=J.sortIndex-se.sortIndex;return X!==0?X:J.id-se.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var c=[],h=[],d=1,B=null,y=3,w=!1,U=!1,x=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function D(J){for(var se=A(h);se!==null;){if(se.callback===null)n(h);else if(se.startTime<=J)n(h),se.sortIndex=se.expirationTime,t(c,se);else break;se=A(h)}}function q(J){if(x=!1,D(J),!U)if(A(c)!==null)U=!0,ne||(ne=!0,j());else{var se=A(h);se!==null&&ge(q,se.startTime-J)}}var ne=!1,ee=-1,K=5,P=-1;function le(){return S?!0:!(e.unstable_now()-PJ&&le());){var me=B.callback;if(typeof me=="function"){B.callback=null,y=B.priorityLevel;var Se=me(B.expirationTime<=J);if(J=e.unstable_now(),typeof Se=="function"){B.callback=Se,D(J),se=!0;break t}B===A(c)&&n(c),D(J)}else n(c);B=A(c)}if(B!==null)se=!0;else{var z=A(h);z!==null&&ge(q,z.startTime-J),se=!1}}break e}finally{B=null,y=X,w=!1}se=void 0}}finally{se?j():ne=!1}}}var j;if(typeof H=="function")j=function(){H(I)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,W=ae.port2;ae.port1.onmessage=I,j=function(){W.postMessage(null)}}else j=function(){E(I,0)};function ge(J,se){ee=E(function(){J(e.unstable_now())},se)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(J){J.callback=null},e.unstable_forceFrameRate=function(J){0>J||125me?(J.sortIndex=X,t(h,J),A(c)===null&&J===A(h)&&(x?(_(ee),ee=-1):x=!0,ge(q,X-me))):(J.sortIndex=Se,t(c,J),U||w||(U=!0,ne||(ne=!0,j()))),J},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(J){var se=y;return function(){var X=y;y=se;try{return J.apply(this,arguments)}finally{y=X}}}})(J0)),J0}var ry;function aS(){return ry||(ry=1,W0.exports=iS()),W0.exports}var Z0={exports:{}},Mt={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var iy;function sS(){if(iy)return Mt;iy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),y=Symbol.iterator;function w(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function E(z,L,M){this.props=z,this.context=L,this.refs=S,this.updater=M||U}E.prototype.isReactComponent={},E.prototype.setState=function(z,L){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,L,"setState")},E.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function _(){}_.prototype=E.prototype;function H(z,L,M){this.props=z,this.context=L,this.refs=S,this.updater=M||U}var D=H.prototype=new _;D.constructor=H,x(D,E.prototype),D.isPureReactComponent=!0;var q=Array.isArray;function ne(){}var ee={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function P(z,L,M){var G=M.ref;return{$$typeof:e,type:z,key:L,ref:G!==void 0?G:null,props:M}}function le(z,L){return P(z.type,L,z.props)}function I(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function j(z){var L={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(M){return L[M]})}var ae=/\/+/g;function W(z,L){return typeof z=="object"&&z!==null&&z.key!=null?j(""+z.key):L.toString(36)}function ge(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(ne,ne):(z.status="pending",z.then(function(L){z.status==="pending"&&(z.status="fulfilled",z.value=L)},function(L){z.status==="pending"&&(z.status="rejected",z.reason=L)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function J(z,L,M,G,oe){var ue=typeof z;(ue==="undefined"||ue==="boolean")&&(z=null);var fe=!1;if(z===null)fe=!0;else switch(ue){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(z.$$typeof){case e:case t:fe=!0;break;case d:return fe=z._init,J(fe(z._payload),L,M,G,oe)}}if(fe)return oe=oe(z),fe=G===""?"."+W(z,0):G,q(oe)?(M="",fe!=null&&(M=fe.replace(ae,"$&/")+"/"),J(oe,L,M,"",function(_e){return _e})):oe!=null&&(I(oe)&&(oe=le(oe,M+(oe.key==null||z&&z.key===oe.key?"":(""+oe.key).replace(ae,"$&/")+"/")+fe)),L.push(oe)),1;fe=0;var Qe=G===""?".":G+":";if(q(z))for(var xe=0;xe"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$0.exports=oS(),$0.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ly;function lS(){if(ly)return Rf;ly=1;var e=aS(),t=lg(),A=b4();function n(r){var i="https://react.dev/errors/"+r;if(1Se||(r.current=me[Se],me[Se]=null,Se--)}function M(r,i){Se++,me[Se]=r.current,r.current=i}var G=z(null),oe=z(null),ue=z(null),fe=z(null);function Qe(r,i){switch(M(ue,i),M(oe,r),M(G,null),i.nodeType){case 9:case 11:r=(r=i.documentElement)&&(r=r.namespaceURI)?xv(r):0;break;default:if(r=i.tagName,i=i.namespaceURI)i=xv(i),r=Uv(i,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}L(G),M(G,r)}function xe(){L(G),L(oe),L(ue)}function _e(r){r.memoizedState!==null&&M(fe,r);var i=G.current,o=Uv(i,r.type);i!==o&&(M(oe,r),M(G,o))}function Ke(r){oe.current===r&&(L(G),L(oe)),fe.current===r&&(L(fe),Hf._currentValue=X)}var Ge,ze;function at(r){if(Ge===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Ge=i&&i[1]||"",ze=-1)":-1g||ce[f]!==Ee[g]){var He=` `+ce[f].replace(" at new "," at ");return r.displayName&&He.includes("")&&(He=He.replace("",r.displayName)),He}while(1<=f&&0<=g);break}}}finally{te=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?at(o):""}function Kt(r,i){switch(r.tag){case 26:case 27:case 5:return at(r.type);case 16:return at("Lazy");case 13:return r.child!==i&&i!==null?at("Suspense Fallback"):at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return qe(r.type,!1);case 11:return qe(r.type.render,!1);case 1:return qe(r.type,!0);case 31:return at("Activity");default:return""}}function vt(r){try{var i="",o=null;do i+=Kt(r,o),o=r,r=r.return;while(r);return i}catch(f){return` Error generating stack: `+f.message+` `+f.stack}}var Pe=Object.prototype.hasOwnProperty,gt=e.unstable_scheduleCallback,Ze=e.unstable_cancelCallback,yt=e.unstable_shouldYield,ht=e.unstable_requestPaint,Dt=e.unstable_now,Xt=e.unstable_getCurrentPriorityLevel,_t=e.unstable_ImmediatePriority,Yt=e.unstable_UserBlockingPriority,jt=e.unstable_NormalPriority,st=e.unstable_LowPriority,Ht=e.unstable_IdlePriority,ut=e.log,en=e.unstable_setDisableYieldValue,zt=null,bt=null;function Ft(r){if(typeof ut=="function"&&en(r),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(zt,r)}catch{}}var Wt=Math.clz32?Math.clz32:Ut,mt=Math.log,EA=Math.LN2;function Ut(r){return r>>>=0,r===0?32:31-(mt(r)/EA|0)|0}var St=256,vA=262144,kt=4194304;function ct(r){var i=r&42;if(i!==0)return i;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function rA(r,i,o){var f=r.pendingLanes;if(f===0)return 0;var g=0,v=r.suspendedLanes,F=r.pingedLanes;r=r.warmLanes;var k=f&134217727;return k!==0?(f=k&~v,f!==0?g=ct(f):(F&=k,F!==0?g=ct(F):o||(o=k&~r,o!==0&&(g=ct(o))))):(k=f&~v,k!==0?g=ct(k):F!==0?g=ct(F):o||(o=f&~r,o!==0&&(g=ct(o)))),g===0?0:i!==0&&i!==g&&(i&v)===0&&(v=g&-g,o=i&-i,v>=o||v===32&&(o&4194048)!==0)?i:g}function hi(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function Wn(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Oi(){var r=kt;return kt<<=1,(kt&62914560)===0&&(kt=4194304),r}function Vr(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function dt(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ha(r,i,o,f,g,v){var F=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var k=r.entanglements,ce=r.expirationTimes,Ee=r.hiddenUpdates;for(o=F&~o;0"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var vn=/[\n"\\]/g;function un(r){return r.replace(vn,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function yo(r,i,o,f,g,v,F,k){r.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?r.type=F:r.removeAttribute("type"),i!=null?F==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+cA(i)):r.value!==""+cA(i)&&(r.value=""+cA(i)):F!=="submit"&&F!=="reset"||r.removeAttribute("value"),i!=null?Sl(r,F,cA(i)):o!=null?Sl(r,F,cA(o)):f!=null&&r.removeAttribute("value"),g==null&&v!=null&&(r.defaultChecked=!!v),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?r.name=""+cA(k):r.removeAttribute("name")}function bu(r,i,o,f,g,v,F,k){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(r.type=v),i!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||i!=null)){$a(r);return}o=o!=null?""+cA(o):"",i=i!=null?""+cA(i):o,k||i===r.value||(r.value=i),r.defaultValue=i}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=k?r.checked:!!f,r.defaultChecked=!!f,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(r.name=F),$a(r)}function Sl(r,i,o){i==="number"&&sr(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function or(r,i,o,f){if(r=r.options,i){i={};for(var g=0;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dl=!1;if(Mn)try{var Ms={};Object.defineProperty(Ms,"passive",{get:function(){Dl=!0}}),window.addEventListener("test",Ms,Ms),window.removeEventListener("test",Ms,Ms)}catch{Dl=!1}var Ir=null,Rs=null,Pi=null;function Fu(){if(Pi)return Pi;var r,i=Rs,o=i.length,f,g="value"in Ir?Ir.value:Ir.textContent,v=g.length;for(r=0;r=Ci),Nn=" ",ts=!1;function As(r,i){switch(r){case"keyup":return Uo.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eo(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Vi=!1;function lr(r,i){switch(r){case"compositionend":return Eo(i);case"keypress":return i.which!==32?null:(ts=!0,Nn);case"textInput":return r=i.data,r===Nn&&ts?null:r;default:return null}}function Ea(r,i){if(Vi)return r==="compositionend"||!ji&&As(r,i)?(r=Fu(),Pi=Rs=Ir=null,Vi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:o,offset:i-r};r=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Lo(o)}}function La(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?La(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Ta(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=sr(r.document);i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)r=i.contentWindow;else break;i=sr(r.document)}return i}function Yi(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var js=Mn&&"documentMode"in document&&11>=document.documentMode,Mr=null,Na=null,Zn=null,Xr=!1;function fA(r,i,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Xr||Mr==null||Mr!==sr(f)||(f=Mr,"selectionStart"in f&&Yi(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Zn&&Sa(Zn,f)||(Zn=f,f=md(Na,"onSelect"),0>=F,g-=F,ei=1<<32-Wt(i)+g|o<Vt?(AA=lt,lt=null):AA=lt.sibling;var pA=Fe(ve,lt,Ue[Vt],Oe);if(pA===null){lt===null&&(lt=AA);break}r&<&&pA.alternate===null&&i(ve,lt),pe=v(pA,pe,Vt),dA===null?wt=pA:dA.sibling=pA,dA=pA,lt=AA}if(Vt===Ue.length)return o(ve,lt),Zt&&kr(ve,Vt),wt;if(lt===null){for(;VtVt?(AA=lt,lt=null):AA=lt.sibling;var el=Fe(ve,lt,pA.value,Oe);if(el===null){lt===null&&(lt=AA);break}r&<&&el.alternate===null&&i(ve,lt),pe=v(el,pe,Vt),dA===null?wt=el:dA.sibling=el,dA=el,lt=AA}if(pA.done)return o(ve,lt),Zt&&kr(ve,Vt),wt;if(lt===null){for(;!pA.done;Vt++,pA=Ue.next())pA=Me(ve,pA.value,Oe),pA!==null&&(pe=v(pA,pe,Vt),dA===null?wt=pA:dA.sibling=pA,dA=pA);return Zt&&kr(ve,Vt),wt}for(lt=f(lt);!pA.done;Vt++,pA=Ue.next())pA=Le(lt,ve,Vt,pA.value,Oe),pA!==null&&(r&&pA.alternate!==null&<.delete(pA.key===null?Vt:pA.key),pe=v(pA,pe,Vt),dA===null?wt=pA:dA.sibling=pA,dA=pA);return r&<.forEach(function(tS){return i(ve,tS)}),Zt&&kr(ve,Vt),wt}function NA(ve,pe,Ue,Oe){if(typeof Ue=="object"&&Ue!==null&&Ue.type===x&&Ue.key===null&&(Ue=Ue.props.children),typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case w:e:{for(var wt=Ue.key;pe!==null;){if(pe.key===wt){if(wt=Ue.type,wt===x){if(pe.tag===7){o(ve,pe.sibling),Oe=g(pe,Ue.props.children),Oe.return=ve,ve=Oe;break e}}else if(pe.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===K&&be(wt)===pe.type){o(ve,pe.sibling),Oe=g(pe,Ue.props),Tt(Oe,Ue),Oe.return=ve,ve=Oe;break e}o(ve,pe);break}else i(ve,pe);pe=pe.sibling}Ue.type===x?(Oe=rs(Ue.props.children,ve.mode,Oe,Ue.key),Oe.return=ve,ve=Oe):(Oe=No(Ue.type,Ue.key,Ue.props,null,ve.mode,Oe),Tt(Oe,Ue),Oe.return=ve,ve=Oe)}return F(ve);case U:e:{for(wt=Ue.key;pe!==null;){if(pe.key===wt)if(pe.tag===4&&pe.stateNode.containerInfo===Ue.containerInfo&&pe.stateNode.implementation===Ue.implementation){o(ve,pe.sibling),Oe=g(pe,Ue.children||[]),Oe.return=ve,ve=Oe;break e}else{o(ve,pe);break}else i(ve,pe);pe=pe.sibling}Oe=_o(Ue,ve.mode,Oe),Oe.return=ve,ve=Oe}return F(ve);case K:return Ue=be(Ue),NA(ve,pe,Ue,Oe)}if(ge(Ue))return tt(ve,pe,Ue,Oe);if(j(Ue)){if(wt=j(Ue),typeof wt!="function")throw Error(n(150));return Ue=wt.call(Ue),Et(ve,pe,Ue,Oe)}if(typeof Ue.then=="function")return NA(ve,pe,Ye(Ue),Oe);if(Ue.$$typeof===H)return NA(ve,pe,Ku(ve,Ue),Oe);$e(ve,Ue)}return typeof Ue=="string"&&Ue!==""||typeof Ue=="number"||typeof Ue=="bigint"?(Ue=""+Ue,pe!==null&&pe.tag===6?(o(ve,pe.sibling),Oe=g(pe,Ue),Oe.return=ve,ve=Oe):(o(ve,pe),Oe=zl(Ue,ve.mode,Oe),Oe.return=ve,ve=Oe),F(ve)):o(ve,pe)}return function(ve,pe,Ue,Oe){try{At=0;var wt=NA(ve,pe,Ue,Oe);return Re=null,wt}catch(lt){if(lt===de||lt===Ae)throw lt;var dA=er(29,lt,null,ve.mode);return dA.lanes=Oe,dA.return=ve,dA}finally{}}}var DA=Jt(!0),Ot=Jt(!1),We=!1;function Ve(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function KA(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function xt(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Pt(r,i,o){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(BA&2)!==0){var g=f.pending;return g===null?i.next=i:(i.next=g.next,g.next=i),f.pending=i,i=$n(r),Vl(r,null,o),i}return jl(r,f,i,o),$n(r)}function gA(r,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var f=i.lanes;f&=r.pendingLanes,o|=f,i.lanes=o,Lr(r,o)}}function bn(r,i){var o=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,o===f)){var g=null,v=null;if(o=o.firstBaseUpdate,o!==null){do{var F={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};v===null?g=v=F:v=v.next=F,o=o.next}while(o!==null);v===null?g=v=i:v=v.next=i}else g=v=i;o={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:f.shared,callbacks:f.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=i:r.next=i,o.lastBaseUpdate=i}var Gn=!1;function SA(){if(Gn){var r=m;if(r!==null)throw r}}function fn(r,i,o,f){Gn=!1;var g=r.updateQueue;We=!1;var v=g.firstBaseUpdate,F=g.lastBaseUpdate,k=g.shared.pending;if(k!==null){g.shared.pending=null;var ce=k,Ee=ce.next;ce.next=null,F===null?v=Ee:F.next=Ee,F=ce;var He=r.alternate;He!==null&&(He=He.updateQueue,k=He.lastBaseUpdate,k!==F&&(k===null?He.firstBaseUpdate=Ee:k.next=Ee,He.lastBaseUpdate=ce))}if(v!==null){var Me=g.baseState;F=0,He=Ee=ce=null,k=v;do{var Fe=k.lane&-536870913,Le=Fe!==k.lane;if(Le?(tA&Fe)===Fe:(f&Fe)===Fe){Fe!==0&&Fe===p&&(Gn=!0),He!==null&&(He=He.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var tt=r,Et=k;Fe=i;var NA=o;switch(Et.tag){case 1:if(tt=Et.payload,typeof tt=="function"){Me=tt.call(NA,Me,Fe);break e}Me=tt;break e;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=Et.payload,Fe=typeof tt=="function"?tt.call(NA,Me,Fe):tt,Fe==null)break e;Me=B({},Me,Fe);break e;case 2:We=!0}}Fe=k.callback,Fe!==null&&(r.flags|=64,Le&&(r.flags|=8192),Le=g.callbacks,Le===null?g.callbacks=[Fe]:Le.push(Fe))}else Le={lane:Fe,tag:k.tag,payload:k.payload,callback:k.callback,next:null},He===null?(Ee=He=Le,ce=Me):He=He.next=Le,F|=Fe;if(k=k.next,k===null){if(k=g.shared.pending,k===null)break;Le=k,k=Le.next,Le.next=null,g.lastBaseUpdate=Le,g.shared.pending=null}}while(!0);He===null&&(ce=Me),g.baseState=ce,g.firstBaseUpdate=Ee,g.lastBaseUpdate=He,v===null&&(g.shared.lanes=0),Vo|=F,r.lanes=F,r.memoizedState=Me}}function tr(r,i){if(typeof r!="function")throw Error(n(191,r));r.call(i)}function hn(r,i){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;rv?v:8;var F=J.T,k={};J.T=k,zg(r,!1,i,o);try{var ce=g(),Ee=J.S;if(Ee!==null&&Ee(k,ce),ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var He=N(ce,f);mf(r,i,He,Li(r))}else mf(r,i,f,Li(r))}catch(Me){mf(r,i,{then:function(){},status:"rejected",reason:Me},Li())}finally{se.p=v,F!==null&&k.types!==null&&(F.types=k.types),J.T=F}}function WQ(){}function Vg(r,i,o,f){if(r.tag!==5)throw Error(n(476));var g=WB(r).queue;YB(r,g,i,X,o===null?WQ:function(){return JB(r),o(f)})}function WB(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:X},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:o},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function JB(r){var i=WB(r);i.next===null&&(i=r.alternate.memoizedState),mf(r,i.next.queue,{},Li())}function Gg(){return Vn(Hf)}function ZB(){return YA().memoizedState}function $B(){return YA().memoizedState}function JQ(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var o=Li();r=xt(o);var f=Pt(i,r,o);f!==null&&(oi(f,i,o),gA(f,i,o)),i={cache:Oo()},r.payload=i;return}i=i.return}}function ZQ(r,i,o){var f=Li();o={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Zh(r)?tw(i,o):(o=_u(r,i,o,f),o!==null&&(oi(o,r,f),Aw(o,i,f)))}function ew(r,i,o){var f=Li();mf(r,i,o,f)}function mf(r,i,o,f){var g={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Zh(r))tw(i,g);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var F=i.lastRenderedState,k=v(F,o);if(g.hasEagerState=!0,g.eagerState=k,kn(k,F))return jl(r,i,g,0),IA===null&&Kl(),!1}catch{}finally{}if(o=_u(r,i,g,f),o!==null)return oi(o,r,f),Aw(o,i,f),!0}return!1}function zg(r,i,o,f){if(f={lane:2,revertLane:x0(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Zh(r)){if(i)throw Error(n(479))}else i=_u(r,o,f,2),i!==null&&oi(i,r,2)}function Zh(r){var i=r.alternate;return r===pt||i!==null&&i===pt}function tw(r,i){ni=vr=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function Aw(r,i,o){if((o&4194048)!==0){var f=i.lanes;f&=r.pendingLanes,o|=f,i.lanes=o,Lr(r,o)}}var Bf={readContext:Vn,use:Mo,useCallback:LA,useContext:LA,useEffect:LA,useImperativeHandle:LA,useLayoutEffect:LA,useInsertionEffect:LA,useMemo:LA,useReducer:LA,useRef:LA,useState:LA,useDebugValue:LA,useDeferredValue:LA,useTransition:LA,useSyncExternalStore:LA,useId:LA,useHostTransitionStatus:LA,useFormState:LA,useActionState:LA,useOptimistic:LA,useMemoCache:LA,useCacheRefresh:LA};Bf.useEffectEvent=LA;var nw={readContext:Vn,use:Mo,useCallback:function(r,i){return _n().memoizedState=[r,i===void 0?null:i],r},useContext:Vn,useEffect:kB,useImperativeHandle:function(r,i,o){o=o!=null?o.concat([r]):null,ko(4194308,4,VB.bind(null,i,r),o)},useLayoutEffect:function(r,i){return ko(4194308,4,r,i)},useInsertionEffect:function(r,i){ko(4,2,r,i)},useMemo:function(r,i){var o=_n();i=i===void 0?null:i;var f=r();if(fr){Ft(!0);try{r()}finally{Ft(!1)}}return o.memoizedState=[f,i],f},useReducer:function(r,i,o){var f=_n();if(o!==void 0){var g=o(i);if(fr){Ft(!0);try{o(i)}finally{Ft(!1)}}}else g=i;return f.memoizedState=f.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},f.queue=r,r=r.dispatch=ZQ.bind(null,pt,r),[f.memoizedState,r]},useRef:function(r){var i=_n();return r={current:r},i.memoizedState=r},useState:function(r){r=ds(r);var i=r.queue,o=ew.bind(null,pt,i);return i.dispatch=o,[r.memoizedState,o]},useDebugValue:Kg,useDeferredValue:function(r,i){var o=_n();return jg(o,r,i)},useTransition:function(){var r=ds(!1);return r=YB.bind(null,pt,r.queue,!0,!1),_n().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,o){var f=pt,g=_n();if(Zt){if(o===void 0)throw Error(n(407));o=o()}else{if(o=i(),IA===null)throw Error(n(349));(tA&127)!==0||Ia(f,i,o)}g.memoizedState=o;var v={value:o,getSnapshot:i};return g.queue=v,kB(df.bind(null,f,v,r),[r]),f.flags|=2048,Zs(9,{destroy:void 0},hf.bind(null,f,v,o,i),null),o},useId:function(){var r=_n(),i=IA.identifierPrefix;if(Zt){var o=ti,f=ei;o=(f&~(1<<32-Wt(f)-1)).toString(32)+o,i="_"+i+"R_"+o,o=gn++,0<\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof f.is=="string"?F.createElement("select",{is:f.is}):F.createElement("select"),f.multiple?v.multiple=!0:f.size&&(v.size=f.size);break;default:v=typeof f.is=="string"?F.createElement(g,{is:f.is}):F.createElement(g)}}v[yA]=i,v[kA]=f;e:for(F=i.child;F!==null;){if(F.tag===5||F.tag===6)v.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===i)break e;for(;F.sibling===null;){if(F.return===null||F.return===i)break e;F=F.return}F.sibling.return=F.return,F=F.sibling}i.stateNode=v;e:switch(dr(v,g,f),g){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&eo(i)}}return GA(i),a0(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,o),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==f&&eo(i);else{if(typeof f!="string"&&i.stateNode===null)throw Error(n(166));if(r=ue.current,jn(i)){if(r=i.stateNode,o=i.memoizedProps,f=null,g=Kn,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}r[yA]=i,r=!!(r.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||bv(r.nodeValue,o)),r||as(i,!0)}else r=Bd(r).createTextNode(f),r[yA]=i,i.stateNode=r}return GA(i),null;case 31:if(o=i.memoizedState,r===null||r.memoizedState!==null){if(f=jn(i),o!==null){if(r===null){if(!f)throw Error(n(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(557));r[yA]=i}else Xs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;GA(i),r=!1}else o=of(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return i.flags&256?(bA(i),i):(bA(i),null);if((i.flags&128)!==0)throw Error(n(558))}return GA(i),null;case 13:if(f=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=jn(i),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(n(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[yA]=i}else Xs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;GA(i),g=!1}else g=of(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return i.flags&256?(bA(i),i):(bA(i),null)}return bA(i),(i.flags&128)!==0?(i.lanes=o,i):(o=f!==null,r=r!==null&&r.memoizedState!==null,o&&(f=i.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool),v=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==g&&(f.flags|=2048)),o!==r&&o&&(i.child.flags|=8192),nd(i,i.updateQueue),GA(i),null);case 4:return xe(),r===null&&F0(i.stateNode.containerInfo),GA(i),null;case 10:return Ai(i.type),GA(i),null;case 19:if(L(sA),f=i.memoizedState,f===null)return GA(i),null;if(g=(i.flags&128)!==0,v=f.rendering,v===null)if(g)vf(f,!1);else{if(mn!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(v=Ar(r),v!==null){for(i.flags|=128,vf(f,!1),r=v.updateQueue,i.updateQueue=r,nd(i,r),i.subtreeFlags=0,r=o,o=i.child;o!==null;)Gl(o,r),o=o.sibling;return M(sA,sA.current&1|2),Zt&&kr(i,f.treeForkCount),i.child}r=r.sibling}f.tail!==null&&Dt()>od&&(i.flags|=128,g=!0,vf(f,!1),i.lanes=4194304)}else{if(!g)if(r=Ar(v),r!==null){if(i.flags|=128,g=!0,r=r.updateQueue,i.updateQueue=r,nd(i,r),vf(f,!0),f.tail===null&&f.tailMode==="hidden"&&!v.alternate&&!Zt)return GA(i),null}else 2*Dt()-f.renderingStartTime>od&&o!==536870912&&(i.flags|=128,g=!0,vf(f,!1),i.lanes=4194304);f.isBackwards?(v.sibling=i.child,i.child=v):(r=f.last,r!==null?r.sibling=v:i.child=v,f.last=v)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=Dt(),r.sibling=null,o=sA.current,M(sA,g?o&1|2:o&1),Zt&&kr(i,f.treeForkCount),r):(GA(i),null);case 22:case 23:return bA(i),Cn(),f=i.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(i.flags|=8192):f&&(i.flags|=8192),f?(o&536870912)!==0&&(i.flags&128)===0&&(GA(i),i.subtreeFlags&6&&(i.flags|=8192)):GA(i),o=i.updateQueue,o!==null&&nd(i,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==o&&(i.flags|=2048),r!==null&&L(R),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Ai(an),GA(i),null;case 25:return null;case 30:return null}throw Error(n(156,i.tag))}function nF(r,i){switch(Ru(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Ai(an),xe(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return Ke(i),null;case 31:if(i.memoizedState!==null){if(bA(i),i.alternate===null)throw Error(n(340));Xs()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(bA(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Xs()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return L(sA),null;case 4:return xe(),null;case 10:return Ai(i.type),null;case 22:case 23:return bA(i),Cn(),r!==null&&L(R),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return Ai(an),null;case 25:return null;default:return null}}function Qw(r,i){switch(Ru(i),i.tag){case 3:Ai(an),xe();break;case 26:case 27:case 5:Ke(i);break;case 4:xe();break;case 31:i.memoizedState!==null&&bA(i);break;case 13:bA(i);break;case 19:L(sA);break;case 10:Ai(i.type);break;case 22:case 23:bA(i),Cn(),r!==null&&L(R);break;case 24:Ai(an)}}function yf(r,i){try{var o=i.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var g=f.next;o=g;do{if((o.tag&r)===r){f=void 0;var v=o.create,F=o.inst;f=v(),F.destroy=f}o=o.next}while(o!==g)}}catch(k){xA(i,i.return,k)}}function Ko(r,i,o){try{var f=i.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var v=g.next;f=v;do{if((f.tag&r)===r){var F=f.inst,k=F.destroy;if(k!==void 0){F.destroy=void 0,g=i;var ce=o,Ee=k;try{Ee()}catch(He){xA(g,ce,He)}}}f=f.next}while(f!==v)}}catch(He){xA(i,i.return,He)}}function Fw(r){var i=r.updateQueue;if(i!==null){var o=r.stateNode;try{hn(i,o)}catch(f){xA(r,r.return,f)}}}function Sw(r,i,o){o.props=Zl(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(f){xA(r,i,f)}}function bf(r,i){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var f=r.stateNode;break;case 30:f=r.stateNode;break;default:f=r.stateNode}typeof o=="function"?r.refCleanup=o(f):o.current=f}}catch(g){xA(r,i,g)}}function ps(r,i){var o=r.ref,f=r.refCleanup;if(o!==null)if(typeof f=="function")try{f()}catch(g){xA(r,i,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){xA(r,i,g)}else o.current=null}function Lw(r){var i=r.type,o=r.memoizedProps,f=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&f.focus();break e;case"img":o.src?f.src=o.src:o.srcSet&&(f.srcset=o.srcSet)}}catch(g){xA(r,r.return,g)}}function s0(r,i,o){try{var f=r.stateNode;UF(f,r.type,o,i),f[kA]=i}catch(g){xA(r,r.return,g)}}function Tw(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Yo(r.type)||r.tag===4}function o0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Tw(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Yo(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function l0(r,i,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(r),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=yi));else if(f!==4&&(f===27&&Yo(r.type)&&(o=r.stateNode,i=null),r=r.child,r!==null))for(l0(r,i,o),r=r.sibling;r!==null;)l0(r,i,o),r=r.sibling}function rd(r,i,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?o.insertBefore(r,i):o.appendChild(r);else if(f!==4&&(f===27&&Yo(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(rd(r,i,o),r=r.sibling;r!==null;)rd(r,i,o),r=r.sibling}function Nw(r){var i=r.stateNode,o=r.memoizedProps;try{for(var f=r.type,g=i.attributes;g.length;)i.removeAttributeNode(g[0]);dr(i,f,o),i[yA]=r,i[kA]=o}catch(v){xA(r,r.return,v)}}var to=!1,Dn=!1,u0=!1,_w=typeof WeakSet=="function"?WeakSet:Set,nr=null;function rF(r,i){if(r=r.containerInfo,T0=Ud,r=Ta(r),Yi(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var f=o.getSelection&&o.getSelection();if(f&&f.rangeCount!==0){o=f.anchorNode;var g=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{o.nodeType,v.nodeType}catch{o=null;break e}var F=0,k=-1,ce=-1,Ee=0,He=0,Me=r,Fe=null;t:for(;;){for(var Le;Me!==o||g!==0&&Me.nodeType!==3||(k=F+g),Me!==v||f!==0&&Me.nodeType!==3||(ce=F+f),Me.nodeType===3&&(F+=Me.nodeValue.length),(Le=Me.firstChild)!==null;)Fe=Me,Me=Le;for(;;){if(Me===r)break t;if(Fe===o&&++Ee===g&&(k=F),Fe===v&&++He===f&&(ce=F),(Le=Me.nextSibling)!==null)break;Me=Fe,Fe=Me.parentNode}Me=Le}o=k===-1||ce===-1?null:{start:k,end:ce}}else o=null}o=o||{start:0,end:0}}else o=null;for(N0={focusedElem:r,selectionRange:o},Ud=!1,nr=i;nr!==null;)if(i=nr,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,nr=r;else for(;nr!==null;){switch(i=nr,v=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o title"))),dr(v,f,o),v[yA]=r,tn(v),f=v;break e;case"link":var F=Rv("link","href",g).get(f+(o.href||""));if(F){for(var k=0;kNA&&(F=NA,NA=Et,Et=F);var ve=To(k,Et),pe=To(k,NA);if(ve&&pe&&(Le.rangeCount!==1||Le.anchorNode!==ve.node||Le.anchorOffset!==ve.offset||Le.focusNode!==pe.node||Le.focusOffset!==pe.offset)){var Ue=Me.createRange();Ue.setStart(ve.node,ve.offset),Le.removeAllRanges(),Et>NA?(Le.addRange(Ue),Le.extend(pe.node,pe.offset)):(Ue.setEnd(pe.node,pe.offset),Le.addRange(Ue))}}}}for(Me=[],Le=k;Le=Le.parentNode;)Le.nodeType===1&&Me.push({element:Le,left:Le.scrollLeft,top:Le.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;ko?32:o,J.T=null,o=m0,m0=null;var v=zo,F=ao;if(zn=0,nc=zo=null,ao=0,(BA&6)!==0)throw Error(n(331));var k=BA;if(BA|=4,Vw(v.current),Pw(v,v.current,F,o),BA=k,Ff(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(zt,v)}catch{}return!0}finally{se.p=g,J.T=f,ov(r,i)}}function uv(r,i,o){i=Jr(o,i),i=Wg(r.stateNode,i,2),r=Pt(r,i,2),r!==null&&(dt(r,2),gs(r))}function xA(r,i,o){if(r.tag===3)uv(r,r,o);else for(;i!==null;){if(i.tag===3){uv(i,r,o);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Go===null||!Go.has(f))){r=Jr(o,r),o=cw(2),f=Pt(i,o,2),f!==null&&(fw(o,f,i,r),dt(f,2),gs(f));break}}i=i.return}}function y0(r,i,o){var f=r.pingCache;if(f===null){f=r.pingCache=new sF;var g=new Set;f.set(i,g)}else g=f.get(i),g===void 0&&(g=new Set,f.set(i,g));g.has(o)||(h0=!0,g.add(o),r=fF.bind(null,r,i,o),i.then(r,r))}function fF(r,i,o){var f=r.pingCache;f!==null&&f.delete(i),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,IA===r&&(tA&o)===o&&(mn===4||mn===3&&(tA&62914560)===tA&&300>Dt()-sd?(BA&2)===0&&rc(r,0):d0|=o,Ac===tA&&(Ac=0)),gs(r)}function cv(r,i){i===0&&(i=Oi()),r=_a(r,i),r!==null&&(dt(r,i),gs(r))}function hF(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),cv(r,o)}function dF(r,i){var o=0;switch(r.tag){case 31:case 13:var f=r.stateNode,g=r.memoizedState;g!==null&&(o=g.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(n(314))}f!==null&&f.delete(i),cv(r,o)}function pF(r,i){return gt(r,i)}var dd=null,ac=null,b0=!1,pd=!1,C0=!1,Xo=0;function gs(r){r!==ac&&r.next===null&&(ac===null?dd=ac=r:ac=ac.next=r),pd=!0,b0||(b0=!0,mF())}function Ff(r,i){if(!C0&&pd){C0=!0;do for(var o=!1,f=dd;f!==null;){if(r!==0){var g=f.pendingLanes;if(g===0)var v=0;else{var F=f.suspendedLanes,k=f.pingedLanes;v=(1<<31-Wt(42|r)+1)-1,v&=g&~(F&~k),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(o=!0,pv(f,v))}else v=tA,v=rA(f,f===IA?v:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(v&3)===0||hi(f,v)||(o=!0,pv(f,v));f=f.next}while(o);C0=!1}}function gF(){fv()}function fv(){pd=b0=!1;var r=0;Xo!==0&&QF()&&(r=Xo);for(var i=Dt(),o=null,f=dd;f!==null;){var g=f.next,v=hv(f,i);v===0?(f.next=null,o===null?dd=g:o.next=g,g===null&&(ac=o)):(o=f,(r!==0||(v&3)!==0)&&(pd=!0)),f=g}zn!==0&&zn!==5||Ff(r),Xo!==0&&(Xo=0)}function hv(r,i){for(var o=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,v=r.pendingLanes&-62914561;0k)break;var He=ce.transferSize,Me=ce.initiatorType;He&&Cv(Me)&&(ce=ce.responseEnd,F+=He*(ce"u"?null:document;function Dv(r,i,o){var f=sc;if(f&&typeof i=="string"&&i){var g=un(i);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),Hv.has(g)||(Hv.add(g),r={rel:r,crossOrigin:o,href:i},f.querySelector(g)===null&&(i=f.createElement("link"),dr(i,"link",r),tn(i),f.head.appendChild(i)))}}function IF(r){so.D(r),Dv("dns-prefetch",r,null)}function OF(r,i){so.C(r,i),Dv("preconnect",r,i)}function MF(r,i,o){so.L(r,i,o);var f=sc;if(f&&r&&i){var g='link[rel="preload"][as="'+un(i)+'"]';i==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+un(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+un(o.imageSizes)+'"]')):g+='[href="'+un(r)+'"]';var v=g;switch(i){case"style":v=oc(r);break;case"script":v=lc(r)}ta.has(v)||(r=B({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:r,as:i},o),ta.set(v,r),f.querySelector(g)!==null||i==="style"&&f.querySelector(Nf(v))||i==="script"&&f.querySelector(_f(v))||(i=f.createElement("link"),dr(i,"link",r),tn(i),f.head.appendChild(i)))}}function RF(r,i){so.m(r,i);var o=sc;if(o&&r){var f=i&&typeof i.as=="string"?i.as:"script",g='link[rel="modulepreload"][as="'+un(f)+'"][href="'+un(r)+'"]',v=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=lc(r)}if(!ta.has(v)&&(r=B({rel:"modulepreload",href:r},i),ta.set(v,r),o.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(_f(v)))return}f=o.createElement("link"),dr(f,"link",r),tn(f),o.head.appendChild(f)}}}function kF(r,i,o){so.S(r,i,o);var f=sc;if(f&&r){var g=Ri(f).hoistableStyles,v=oc(r);i=i||"default";var F=g.get(v);if(!F){var k={loading:0,preload:null};if(F=f.querySelector(Nf(v)))k.loading=5;else{r=B({rel:"stylesheet",href:r,"data-precedence":i},o),(o=ta.get(v))&&R0(r,o);var ce=F=f.createElement("link");tn(ce),dr(ce,"link",r),ce._p=new Promise(function(Ee,He){ce.onload=Ee,ce.onerror=He}),ce.addEventListener("load",function(){k.loading|=1}),ce.addEventListener("error",function(){k.loading|=2}),k.loading|=4,vd(F,i,f)}F={type:"stylesheet",instance:F,count:1,state:k},g.set(v,F)}}}function PF(r,i){so.X(r,i);var o=sc;if(o&&r){var f=Ri(o).hoistableScripts,g=lc(r),v=f.get(g);v||(v=o.querySelector(_f(g)),v||(r=B({src:r,async:!0},i),(i=ta.get(g))&&k0(r,i),v=o.createElement("script"),tn(v),dr(v,"link",r),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(g,v))}}function KF(r,i){so.M(r,i);var o=sc;if(o&&r){var f=Ri(o).hoistableScripts,g=lc(r),v=f.get(g);v||(v=o.querySelector(_f(g)),v||(r=B({src:r,async:!0,type:"module"},i),(i=ta.get(g))&&k0(r,i),v=o.createElement("script"),tn(v),dr(v,"link",r),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(g,v))}}function Iv(r,i,o,f){var g=(g=ue.current)?wd(g):null;if(!g)throw Error(n(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=oc(o.href),o=Ri(g).hoistableStyles,f=o.get(i),f||(f={type:"style",instance:null,count:0,state:null},o.set(i,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=oc(o.href);var v=Ri(g).hoistableStyles,F=v.get(r);if(F||(g=g.ownerDocument||g,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(r,F),(v=g.querySelector(Nf(r)))&&!v._p&&(F.instance=v,F.state.loading=5),ta.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ta.set(r,o),v||jF(g,r,o,F.state))),i&&f===null)throw Error(n(528,""));return F}if(i&&f!==null)throw Error(n(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=lc(o),o=Ri(g).hoistableScripts,f=o.get(i),f||(f={type:"script",instance:null,count:0,state:null},o.set(i,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,r))}}function oc(r){return'href="'+un(r)+'"'}function Nf(r){return'link[rel="stylesheet"]['+r+"]"}function Ov(r){return B({},r,{"data-precedence":r.precedence,precedence:null})}function jF(r,i,o,f){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?f.loading=1:(i=r.createElement("link"),f.preload=i,i.addEventListener("load",function(){return f.loading|=1}),i.addEventListener("error",function(){return f.loading|=2}),dr(i,"link",o),tn(i),r.head.appendChild(i))}function lc(r){return'[src="'+un(r)+'"]'}function _f(r){return"script[async]"+r}function Mv(r,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var f=r.querySelector('style[data-href~="'+un(o.href)+'"]');if(f)return i.instance=f,tn(f),f;var g=B({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return f=(r.ownerDocument||r).createElement("style"),tn(f),dr(f,"style",g),vd(f,o.precedence,r),i.instance=f;case"stylesheet":g=oc(o.href);var v=r.querySelector(Nf(g));if(v)return i.state.loading|=4,i.instance=v,tn(v),v;f=Ov(o),(g=ta.get(g))&&R0(f,g),v=(r.ownerDocument||r).createElement("link"),tn(v);var F=v;return F._p=new Promise(function(k,ce){F.onload=k,F.onerror=ce}),dr(v,"link",f),i.state.loading|=4,vd(v,o.precedence,r),i.instance=v;case"script":return v=lc(o.src),(g=r.querySelector(_f(v)))?(i.instance=g,tn(g),g):(f=o,(g=ta.get(v))&&(f=B({},o),k0(f,g)),r=r.ownerDocument||r,g=r.createElement("script"),tn(g),dr(g,"link",f),r.head.appendChild(g),i.instance=g);case"void":return null;default:throw Error(n(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(f=i.instance,i.state.loading|=4,vd(f,o.precedence,r));return i.instance}function vd(r,i,o){for(var f=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,v=g,F=0;F title"):null)}function VF(r,i,o){if(o===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return r=i.disabled,typeof i.precedence=="string"&&r==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Pv(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function GF(r,i,o,f){if(o.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=oc(f.href),v=i.querySelector(Nf(g));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=bd.bind(r),i.then(r,r)),o.state.loading|=4,o.instance=v,tn(v);return}v=i.ownerDocument||i,f=Ov(f),(g=ta.get(g))&&R0(f,g),v=v.createElement("link"),tn(v);var F=v;F._p=new Promise(function(k,ce){F.onload=k,F.onerror=ce}),dr(v,"link",f),o.instance=v}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=bd.bind(r),i.addEventListener("load",o),i.addEventListener("error",o))}}var P0=0;function zF(r,i){return r.stylesheets&&r.count===0&&xd(r,r.stylesheets),0P0?50:800)+i);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(f),clearTimeout(g)}}:null}function bd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xd(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Cd=null;function xd(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Cd=new Map,i.forEach(qF,r),Cd=null,bd.call(r))}function qF(r,i){if(!(i.state.loading&4)){var o=Cd.get(r);if(o)var f=o.get(null);else{o=new Map,Cd.set(r,o);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Y0.exports=lS(),Y0.exports}var cS=uS();function fS(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var A,n,a,s,l=[],u="",c=e.split("/");for(c[0]||c.shift();a=c.shift();)A=a[0],A==="*"?(l.push(A),u+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):A===":"?(n=a.indexOf("?",1),s=a.indexOf(".",1),l.push(a.substring(1,~n?n:~s?s:a.length)),u+=~n&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(u+=(~n?"?":"")+"\\"+a.substring(s))):u+="/"+a;return{keys:l,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}var $=lg();const rl=y4($),C4=AS({__proto__:null,default:rl},[$]);var em={exports:{}},tm={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var cy;function hS(){if(cy)return tm;cy=1;var e=lg();function t(B,y){return B===y&&(B!==0||1/B===1/y)||B!==B&&y!==y}var A=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(B,y){var w=y(),U=n({inst:{value:w,getSnapshot:y}}),x=U[0].inst,S=U[1];return s(function(){x.value=w,x.getSnapshot=y,c(x)&&S({inst:x})},[B,w,y]),a(function(){return c(x)&&S({inst:x}),B(function(){c(x)&&S({inst:x})})},[B]),l(w),w}function c(B){var y=B.getSnapshot;B=B.value;try{var w=y();return!A(B,w)}catch{return!0}}function h(B,y){return y()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return tm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,tm}var fy;function dS(){return fy||(fy=1,em.exports=hS()),em.exports}var pS=dS();const gS=C4.useInsertionEffect,mS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BS=mS?$.useLayoutEffect:$.useEffect,wS=gS||BS,x4=e=>{const t=$.useRef([e,(...A)=>t[0](...A)]).current;return wS(()=>{t[0]=e}),t[1]},vS="popstate",L2="pushState",T2="replaceState",yS="hashchange",hy=[vS,L2,T2,yS],bS=e=>{for(const t of hy)addEventListener(t,e);return()=>{for(const t of hy)removeEventListener(t,e)}},U4=(e,t)=>pS.useSyncExternalStore(bS,e,t),CS=()=>location.search,xS=({ssrSearch:e=""}={})=>U4(CS,()=>e),dy=()=>location.pathname,US=({ssrPath:e}={})=>U4(dy,e?()=>e:dy),ES=(e,{replace:t=!1,state:A=null}={})=>history[t?T2:L2](A,"",e),QS=(e={})=>[US(e),ES],py=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[py]>"u"){for(const e of[L2,T2]){const t=history[e];history[e]=function(){const A=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),A}}Object.defineProperty(window,py,{value:!0})}const FS=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",E4=(e="")=>e==="/"?"":e,SS=(e,t)=>e[0]==="~"?e.slice(1):E4(t)+e,LS=(e="",t)=>FS(gy(E4(e)),gy(t)),gy=e=>{try{return decodeURI(e)}catch{return e}},Q4={hook:QS,searchHook:xS,parser:fS,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},F4=$.createContext(Q4),ug=()=>$.useContext(F4),S4={},L4=$.createContext(S4),TS=()=>$.useContext(L4),N2=e=>{const[t,A]=e.hook(e);return[LS(e.base,t),x4((n,a)=>A(SS(n,e.base),a))]},T4=(e,t,A,n)=>{const{pattern:a,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),l=a.exec(A)||[],[u,...c]=l;return u!==void 0?[!0,(()=>{const h=s!==!1?Object.fromEntries(s.map((B,y)=>[B,c[y]])):l.groups;let d={...c};return h&&Object.assign(d,h),d})(),...n?[u]:[]]:[!1,null]},NS=({children:e,...t})=>{const A=ug(),n=t.hook?Q4:A;let a=n;const[s,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=s),t.hrefs=t.hrefs??t.hook?.hrefs;let u=$.useRef({}),c=u.current,h=c;for(let d in n){const B=d==="base"?n[d]+(t[d]||""):t[d]||n[d];c===h&&B!==h[d]&&(u.current=h={...h}),h[d]=B,B!==n[d]&&(a=h)}return $.createElement(F4.Provider,{value:a,children:e})},my=({children:e,component:t},A)=>t?$.createElement(t,{params:A}):typeof e=="function"?e(A):e,_S=e=>{let t=$.useRef(S4),A=t.current;for(const n in e)e[n]!==A[n]&&(A=e);return Object.keys(e).length===0&&(A=e),t.current=A},By=({path:e,nest:t,match:A,...n})=>{const a=ug(),[s]=N2(a),[l,u,c]=A??T4(a.parser,e,s,t),h=_S({...TS(),...u});if(!l)return null;const d=c?$.createElement(NS,{base:c},my(n,h)):my(n,h);return $.createElement(L4.Provider,{value:h,children:d})};$.forwardRef((e,t)=>{const A=ug(),[n,a]=N2(A),{to:s="",href:l=s,onClick:u,asChild:c,children:h,className:d,replace:B,state:y,...w}=e,U=x4(S=>{S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.button!==0||(u?.(S),S.defaultPrevented||(S.preventDefault(),a(l,e)))}),x=A.hrefs(l[0]==="~"?l.slice(1):A.base+l,A);return c&&$.isValidElement(h)?$.cloneElement(h,{onClick:U,href:x}):$.createElement("a",{...w,onClick:U,href:x,className:d?.call?d(n===l):d,children:h,ref:t})});const N4=e=>Array.isArray(e)?e.flatMap(t=>N4(t&&t.type===$.Fragment?t.props.children:t)):[e],HS=({children:e,location:t})=>{const A=ug(),[n]=N2(A);for(const a of N4(e)){let s=0;if($.isValidElement(a)&&(s=T4(A.parser,a.props.path,t||n,a.props.nest))[0])return $.cloneElement(a,{match:s})}return null};var cg=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fg=typeof window>"u"||"Deno"in globalThis;function Va(){}function DS(e,t){return typeof e=="function"?e(t):e}function IS(e){return typeof e=="number"&&e>=0&&e!==1/0}function OS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wy(e,t){return typeof e=="function"?e(t):e}function MS(e,t){return typeof e=="function"?e(t):e}function vy(e,t){const{type:A="all",exact:n,fetchStatus:a,predicate:s,queryKey:l,stale:u}=e;if(l){if(n){if(t.queryHash!==_2(l,t.options))return!1}else if(!gh(t.queryKey,l))return!1}if(A!=="all"){const c=t.isActive();if(A==="active"&&!c||A==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||s&&!s(t))}function yy(e,t){const{exact:A,status:n,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(A){if(ph(t.options.mutationKey)!==ph(s))return!1}else if(!gh(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function _2(e,t){return(t?.queryKeyHashFn||ph)(e)}function ph(e){return JSON.stringify(e,(t,A)=>p1(A)?Object.keys(A).sort().reduce((n,a)=>(n[a]=A[a],n),{}):A)}function gh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(A=>!gh(e[A],t[A])):!1}function _4(e,t){if(e===t)return e;const A=by(e)&&by(t);if(A||p1(e)&&p1(t)){const n=A?e:Object.keys(e),a=n.length,s=A?t:Object.keys(t),l=s.length,u=A?[]:{};let c=0;for(let h=0;h{setTimeout(t,e)})}function kS(e,t,A){return typeof A.structuralSharing=="function"?A.structuralSharing(e,t):A.structuralSharing!==!1?_4(e,t):t}function PS(e,t,A=0){const n=[...e,t];return A&&n.length>A?n.slice(1):n}function KS(e,t,A=0){const n=[t,...e];return A&&n.length>A?n.slice(0,-1):n}var H2=Symbol();function H4(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===H2?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var jS=class extends cg{#e;#t;#A;constructor(){super(),this.#A=e=>{if(!fg&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#A)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#A=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},D4=new jS,VS=class extends cg{#e=!0;#t;#A;constructor(){super(),this.#A=e=>{if(!fg&&window.addEventListener){const t=()=>e(!0),A=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",A,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",A)}}}}onSubscribe(){this.#t||this.setEventListener(this.#A)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#A=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(A=>{A(e)}))}isOnline(){return this.#e}},Op=new VS;function GS(){let e,t;const A=new Promise((a,s)=>{e=a,t=s});A.status="pending",A.catch(()=>{});function n(a){Object.assign(A,a),delete A.resolve,delete A.reject}return A.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},A.reject=a=>{n({status:"rejected",reason:a}),t(a)},A}function zS(e){return Math.min(1e3*2**e,3e4)}function I4(e){return(e??"online")==="online"?Op.isOnline():!0}var O4=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Am(e){return e instanceof O4}function M4(e){let t=!1,A=0,n=!1,a;const s=GS(),l=x=>{n||(y(new O4(x)),e.abort?.())},u=()=>{t=!0},c=()=>{t=!1},h=()=>D4.isFocused()&&(e.networkMode==="always"||Op.isOnline())&&e.canRun(),d=()=>I4(e.networkMode)&&e.canRun(),B=x=>{n||(n=!0,e.onSuccess?.(x),a?.(),s.resolve(x))},y=x=>{n||(n=!0,e.onError?.(x),a?.(),s.reject(x))},w=()=>new Promise(x=>{a=S=>{(n||h())&&x(S)},e.onPause?.()}).then(()=>{a=void 0,n||e.onContinue?.()}),U=()=>{if(n)return;let x;const S=A===0?e.initialPromise:void 0;try{x=S??e.fn()}catch(E){x=Promise.reject(E)}Promise.resolve(x).then(B).catch(E=>{if(n)return;const _=e.retry??(fg?0:3),H=e.retryDelay??zS,D=typeof H=="function"?H(A,E):H,q=_===!0||typeof _=="number"&&A<_||typeof _=="function"&&_(A,E);if(t||!q){y(E);return}A++,e.onFail?.(A,E),RS(D).then(()=>h()?void 0:w()).then(()=>{t?y(E):U()})})};return{promise:s,cancel:l,continue:()=>(a?.(),s),cancelRetry:u,continueRetry:c,canStart:d,start:()=>(d()?U():w().then(U),s)}}function qS(){let e=[],t=0,A=u=>{u()},n=u=>{u()},a=u=>setTimeout(u,0);const s=u=>{t?e.push(u):a(()=>{A(u)})},l=()=>{const u=e;e=[],u.length&&a(()=>{n(()=>{u.forEach(c=>{A(c)})})})};return{batch:u=>{let c;t++;try{c=u()}finally{t--,t||l()}return c},batchCalls:u=>(...c)=>{s(()=>{u(...c)})},schedule:s,setNotifyFunction:u=>{A=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{a=u}}}var Kr=qS(),R4=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),IS(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fg?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},XS=class extends R4{#e;#t;#A;#n;#a;#i;constructor(e){super(),this.#i=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#A=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=WS(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#A.remove(this)}setData(e,t){const A=kS(this.state.data,e,this.options);return this.#r({data:A,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),A}setState(e,t){this.#r({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(Va).catch(Va):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>MS(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===H2||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!OS(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#A.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#i?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#A.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(c=>c.options.queryFn);u&&this.setOptions(u.options)}const A=new AbortController,n=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#i=!0,A.signal)})},a=()=>{const u=H4(this.options,t),c={queryKey:this.queryKey,meta:this.meta};return n(c),this.#i=!1,this.options.persister?this.options.persister(u,c,this):u(c)},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(s),this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#r({type:"fetch",meta:s.fetchOptions?.meta});const l=u=>{Am(u)&&u.silent||this.#r({type:"error",error:u}),Am(u)||(this.#A.config.onError?.(u,this),this.#A.config.onSettled?.(this.state.data,u,this)),this.scheduleGc()};return this.#n=M4({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:A.abort.bind(A),onSuccess:u=>{if(u===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(c){l(c);return}this.#A.config.onSuccess?.(u,this),this.#A.config.onSettled?.(u,this.state.error,this),this.scheduleGc()},onError:l,onFail:(u,c)=>{this.#r({type:"failed",failureCount:u,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#n.start()}#r(e){const t=A=>{switch(e.type){case"failed":return{...A,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...A,fetchStatus:"paused"};case"continue":return{...A,fetchStatus:"fetching"};case"fetch":return{...A,...YS(A.data,this.options),fetchMeta:e.meta??null};case"success":return{...A,data:e.data,dataUpdateCount:A.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Am(n)&&n.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...A,error:n,errorUpdateCount:A.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:A.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...A,isInvalidated:!0};case"setState":return{...A,...e.state}}};this.state=t(this.state),Kr.batch(()=>{this.observers.forEach(A=>{A.onQueryUpdate()}),this.#A.notify({query:this,type:"updated",action:e})})}};function YS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:I4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function WS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,A=t!==void 0,n=A?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:A?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:A?"success":"pending",fetchStatus:"idle"}}var JS=class extends cg{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,A){const n=t.queryKey,a=t.queryHash??_2(n,t);let s=this.get(a);return s||(s=new XS({cache:this,queryKey:n,queryHash:a,options:e.defaultQueryOptions(t),state:A,defaultOptions:e.getQueryDefaults(n)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Kr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(A=>vy(t,A))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(A=>vy(e,A)):t}notify(e){Kr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Kr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Kr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ZS=class extends R4{#e;#t;#A;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||$S(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#A?.continue()??this.execute(this.state.variables)}async execute(e){this.#A=M4({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(n,a)=>{this.#n({type:"failed",failureCount:n,error:a})},onPause:()=>{this.#n({type:"pause"})},onContinue:()=>{this.#n({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const t=this.state.status==="pending",A=!this.#A.canStart();try{if(!t){this.#n({type:"pending",variables:e,isPaused:A}),await this.#t.config.onMutate?.(e,this);const a=await this.options.onMutate?.(e);a!==this.state.context&&this.#n({type:"pending",context:a,variables:e,isPaused:A})}const n=await this.#A.start();return await this.#t.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#t.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#n({type:"success",data:n}),n}catch(n){try{throw await this.#t.config.onError?.(n,e,this.state.context,this),await this.options.onError?.(n,e,this.state.context),await this.#t.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,n,e,this.state.context),n}finally{this.#n({type:"error",error:n})}}finally{this.#t.runNext(this)}}#n(e){const t=A=>{switch(e.type){case"failed":return{...A,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...A,isPaused:!0};case"continue":return{...A,isPaused:!1};case"pending":return{...A,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...A,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...A,data:void 0,error:e.error,failureCount:A.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Kr.batch(()=>{this.#e.forEach(A=>{A.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function $S(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var eL=class extends cg{constructor(e={}){super(),this.config=e,this.#e=new Map,this.#t=Date.now()}#e;#t;build(e,t,A){const n=new ZS({mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:A});return this.add(n),n}add(e){const t=Nd(e),A=this.#e.get(t)??[];A.push(e),this.#e.set(t,A),this.notify({type:"added",mutation:e})}remove(e){const t=Nd(e);if(this.#e.has(t)){const A=this.#e.get(t)?.filter(n=>n!==e);A&&(A.length===0?this.#e.delete(t):this.#e.set(t,A))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#e.get(Nd(e))?.find(A=>A.state.status==="pending");return!t||t===e}runNext(e){return this.#e.get(Nd(e))?.find(A=>A!==e&&A.state.isPaused)?.continue()??Promise.resolve()}clear(){Kr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#e.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find(A=>yy(t,A))}findAll(e={}){return this.getAll().filter(t=>yy(e,t))}notify(e){Kr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Kr.batch(()=>Promise.all(e.map(t=>t.continue().catch(Va))))}};function Nd(e){return e.options.scope?.id??String(e.mutationId)}function xy(e){return{onFetch:(t,A)=>{const n=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},c=0;const h=async()=>{let d=!1;const B=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},y=H4(t.options,t.fetchOptions),w=async(U,x,S)=>{if(d)return Promise.reject();if(x==null&&U.pages.length)return Promise.resolve(U);const E={queryKey:t.queryKey,pageParam:x,direction:S?"backward":"forward",meta:t.options.meta};B(E);const _=await y(E),{maxPages:H}=t.options,D=S?KS:PS;return{pages:D(U.pages,_,H),pageParams:D(U.pageParams,x,H)}};if(a&&s.length){const U=a==="backward",x=U?tL:Uy,S={pages:s,pageParams:l},E=x(n,S);u=await w(S,E,U)}else{const U=e??s.length;do{const x=c===0?l[0]??n.initialPageParam:Uy(n,u);if(c>0&&x==null)break;u=await w(u,x),c++}while(ct.options.persister?.(h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},A):t.fetchFn=h}}}function Uy(e,{pages:t,pageParams:A}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,A[n],A):void 0}function tL(e,{pages:t,pageParams:A}){return t.length>0?e.getPreviousPageParam?.(t[0],t,A[0],A):void 0}var AL=class{#e;#t;#A;#n;#a;#i;#r;#s;constructor(e={}){this.#e=e.queryCache||new JS,this.#t=e.mutationCache||new eL,this.#A=e.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#r=D4.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Op.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#r?.(),this.#r=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const A=this.defaultQueryOptions(e),n=this.#e.build(this,A);return e.revalidateIfStale&&n.isStaleByTime(wy(A.staleTime,n))&&this.prefetchQuery(A),Promise.resolve(t)}}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:A})=>{const n=A.data;return[t,n]})}setQueryData(e,t,A){const n=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(n.queryHash)?.state.data,l=DS(t,s);if(l!==void 0)return this.#e.build(this,n).setData(l,{...A,manual:!0})}setQueriesData(e,t,A){return Kr.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,A)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Kr.batch(()=>{t.findAll(e).forEach(A=>{t.remove(A)})})}resetQueries(e,t){const A=this.#e,n={type:"active",...e};return Kr.batch(()=>(A.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const A={revert:!0,...t},n=Kr.batch(()=>this.#e.findAll(e).map(a=>a.cancel(A)));return Promise.all(n).then(Va).catch(Va)}invalidateQueries(e={},t={}){return Kr.batch(()=>{if(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const A={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(A,t)})}refetchQueries(e={},t){const A={...t,cancelRefetch:t?.cancelRefetch??!0},n=Kr.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()).map(a=>{let s=a.fetch(void 0,A);return A.throwOnError||(s=s.catch(Va)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(Va)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const A=this.#e.build(this,t);return A.isStaleByTime(wy(t.staleTime,A))?A.fetch(t):Promise.resolve(A.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Va).catch(Va)}fetchInfiniteQuery(e){return e.behavior=xy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Va).catch(Va)}ensureInfiniteQueryData(e){return e.behavior=xy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Op.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#A}setDefaultOptions(e){this.#A=e}setQueryDefaults(e,t){this.#n.set(ph(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()];let A={};return t.forEach(n=>{gh(e,n.queryKey)&&(A={...A,...n.defaultOptions})}),A}setMutationDefaults(e,t){this.#a.set(ph(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()];let A={};return t.forEach(n=>{gh(e,n.mutationKey)&&(A={...A,...n.defaultOptions})}),A}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#A.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_2(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===H2&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#A.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},nL=$.createContext(void 0),rL=({client:e,children:t})=>($.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Z.jsx(nL.Provider,{value:e,children:t}));async function iL(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}const aL=({on401:e})=>async({queryKey:t})=>{const A=await fetch(t.join("/"),{credentials:"include"});return await iL(A),await A.json()},sL=new AL({defaultOptions:{queries:{queryFn:aL({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),oL=1,lL=1e6;let nm=0;function uL(){return nm=(nm+1)%Number.MAX_SAFE_INTEGER,nm.toString()}const rm=new Map,Ey=e=>{if(rm.has(e))return;const t=setTimeout(()=>{rm.delete(e),Ah({type:"REMOVE_TOAST",toastId:e})},lL);rm.set(e,t)},cL=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,oL)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(A=>A.id===t.toast.id?{...A,...t.toast}:A)};case"DISMISS_TOAST":{const{toastId:A}=t;return A?Ey(A):e.toasts.forEach(n=>{Ey(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===A||A===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(A=>A.id!==t.toastId)}}},wp=[];let vp={toasts:[]};function Ah(e){vp=cL(vp,e),wp.forEach(t=>{t(vp)})}function fL({...e}){const t=uL(),A=a=>Ah({type:"UPDATE_TOAST",toast:{...a,id:t}}),n=()=>Ah({type:"DISMISS_TOAST",toastId:t});return Ah({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||n()}}}),{id:t,dismiss:n,update:A}}function k4(){const[e,t]=$.useState(vp);return $.useEffect(()=>(wp.push(t),()=>{const A=wp.indexOf(t);A>-1&&wp.splice(A,1)}),[e]),{...e,toast:fL,dismiss:A=>Ah({type:"DISMISS_TOAST",toastId:A})}}var Lh=b4();const P4=y4(Lh);function Hi(e,t,{checkForDefaultPrevented:A=!0}={}){return function(a){if(e?.(a),A===!1||!a.defaultPrevented)return t?.(a)}}function Qy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hg(...e){return t=>{let A=!1;const n=e.map(a=>{const s=Qy(a,t);return!A&&typeof s=="function"&&(A=!0),s});if(A)return()=>{for(let a=0;a{const{scope:y,children:w,...U}=B,x=y?.[e]?.[c]||u,S=$.useMemo(()=>U,Object.values(U));return Z.jsx(x.Provider,{value:S,children:w})};h.displayName=s+"Provider";function d(B,y){const w=y?.[e]?.[c]||u,U=$.useContext(w);if(U)return U;if(l!==void 0)return l;throw new Error(`\`${B}\` must be used within \`${s}\``)}return[h,d]}const a=()=>{const s=A.map(l=>$.createContext(l));return function(u){const c=u?.[e]||s;return $.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return a.scopeName=e,[n,hL(a,...t)]}function hL(...e){const t=e[0];if(e.length===1)return t;const A=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const l=n.reduce((u,{useScope:c,scopeName:h})=>{const B=c(s)[`__scope${h}`];return{...u,...B}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return A.scopeName=t.scopeName,A}function g1(e){const t=dL(e),A=$.forwardRef((n,a)=>{const{children:s,...l}=n,u=$.Children.toArray(s),c=u.find(gL);if(c){const h=c.props.children,d=u.map(B=>B===c?$.Children.count(h)>1?$.Children.only(null):$.isValidElement(h)?h.props.children:null:B);return Z.jsx(t,{...l,ref:a,children:$.isValidElement(h)?$.cloneElement(h,void 0,d):null})}return Z.jsx(t,{...l,ref:a,children:s})});return A.displayName=`${e}.Slot`,A}function dL(e){const t=$.forwardRef((A,n)=>{const{children:a,...s}=A;if($.isValidElement(a)){const l=BL(a),u=mL(s,a.props);return a.type!==$.Fragment&&(u.ref=n?hg(n,l):l),$.cloneElement(a,u)}return $.Children.count(a)>1?$.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pL=Symbol("radix.slottable");function gL(e){return $.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pL}function mL(e,t){const A={...t};for(const n in t){const a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?A[n]=(...u)=>{s(...u),a(...u)}:a&&(A[n]=a):n==="style"?A[n]={...a,...s}:n==="className"&&(A[n]=[a,s].filter(Boolean).join(" "))}return{...e,...A}}function BL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning;return A?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning,A?e.props.ref:e.props.ref||e.ref)}function wL(e){const t=e+"CollectionProvider",[A,n]=dg(t),[a,s]=A(t,{collectionRef:{current:null},itemMap:new Map}),l=x=>{const{scope:S,children:E}=x,_=rl.useRef(null),H=rl.useRef(new Map).current;return Z.jsx(a,{scope:S,itemMap:H,collectionRef:_,children:E})};l.displayName=t;const u=e+"CollectionSlot",c=g1(u),h=rl.forwardRef((x,S)=>{const{scope:E,children:_}=x,H=s(u,E),D=ci(S,H.collectionRef);return Z.jsx(c,{ref:D,children:_})});h.displayName=u;const d=e+"CollectionItemSlot",B="data-radix-collection-item",y=g1(d),w=rl.forwardRef((x,S)=>{const{scope:E,children:_,...H}=x,D=rl.useRef(null),q=ci(S,D),ne=s(d,E);return rl.useEffect(()=>(ne.itemMap.set(D,{ref:D,...H}),()=>void ne.itemMap.delete(D))),Z.jsx(y,{[B]:"",ref:q,children:_})});w.displayName=d;function U(x){const S=s(e+"CollectionConsumer",x);return rl.useCallback(()=>{const _=S.collectionRef.current;if(!_)return[];const H=Array.from(_.querySelectorAll(`[${B}]`));return Array.from(S.itemMap.values()).sort((ne,ee)=>H.indexOf(ne.ref.current)-H.indexOf(ee.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:h,ItemSlot:w},U,n]}var vL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ss=vL.reduce((e,t)=>{const A=g1(`Primitive.${t}`),n=$.forwardRef((a,s)=>{const{asChild:l,...u}=a,c=l?A:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Z.jsx(c,{...u,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function K4(e,t){e&&Lh.flushSync(()=>e.dispatchEvent(t))}function ca(e){const t=$.useRef(e);return $.useEffect(()=>{t.current=e}),$.useMemo(()=>(...A)=>t.current?.(...A),[])}function j4(e,t=globalThis?.document){const A=ca(e);$.useEffect(()=>{const n=a=>{a.key==="Escape"&&A(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[A,t])}var yL="DismissableLayer",m1="dismissableLayer.update",bL="dismissableLayer.pointerDownOutside",CL="dismissableLayer.focusOutside",Fy,V4=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),G4=$.forwardRef((e,t)=>{const{disableOutsidePointerEvents:A=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,h=$.useContext(V4),[d,B]=$.useState(null),y=d?.ownerDocument??globalThis?.document,[,w]=$.useState({}),U=ci(t,ee=>B(ee)),x=Array.from(h.layers),[S]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(S),_=d?x.indexOf(d):-1,H=h.layersWithOutsidePointerEventsDisabled.size>0,D=_>=E,q=UL(ee=>{const K=ee.target,P=[...h.branches].some(le=>le.contains(K));!D||P||(a?.(ee),l?.(ee),ee.defaultPrevented||u?.())},y),ne=EL(ee=>{const K=ee.target;[...h.branches].some(le=>le.contains(K))||(s?.(ee),l?.(ee),ee.defaultPrevented||u?.())},y);return j4(ee=>{_===h.layers.size-1&&(n?.(ee),!ee.defaultPrevented&&u&&(ee.preventDefault(),u()))},y),$.useEffect(()=>{if(d)return A&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Fy=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(d)),h.layers.add(d),Sy(),()=>{A&&h.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Fy)}},[d,y,A,h]),$.useEffect(()=>()=>{d&&(h.layers.delete(d),h.layersWithOutsidePointerEventsDisabled.delete(d),Sy())},[d,h]),$.useEffect(()=>{const ee=()=>w({});return document.addEventListener(m1,ee),()=>document.removeEventListener(m1,ee)},[]),Z.jsx(Ss.div,{...c,ref:U,style:{pointerEvents:H?D?"auto":"none":void 0,...e.style},onFocusCapture:Hi(e.onFocusCapture,ne.onFocusCapture),onBlurCapture:Hi(e.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:Hi(e.onPointerDownCapture,q.onPointerDownCapture)})});G4.displayName=yL;var xL="DismissableLayerBranch",z4=$.forwardRef((e,t)=>{const A=$.useContext(V4),n=$.useRef(null),a=ci(t,n);return $.useEffect(()=>{const s=n.current;if(s)return A.branches.add(s),()=>{A.branches.delete(s)}},[A.branches]),Z.jsx(Ss.div,{...e,ref:a})});z4.displayName=xL;function UL(e,t=globalThis?.document){const A=ca(e),n=$.useRef(!1),a=$.useRef(()=>{});return $.useEffect(()=>{const s=u=>{if(u.target&&!n.current){let c=function(){q4(bL,A,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);n.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,A]),{onPointerDownCapture:()=>n.current=!0}}function EL(e,t=globalThis?.document){const A=ca(e),n=$.useRef(!1);return $.useEffect(()=>{const a=s=>{s.target&&!n.current&&q4(CL,A,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,A]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Sy(){const e=new CustomEvent(m1);document.dispatchEvent(e)}function q4(e,t,A,{discrete:n}){const a=A.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:A});t&&a.addEventListener(e,t,{once:!0}),n?K4(a,s):a.dispatchEvent(s)}var QL=G4,FL=z4,Qs=globalThis?.document?$.useLayoutEffect:()=>{},SL="Portal",X4=$.forwardRef((e,t)=>{const{container:A,...n}=e,[a,s]=$.useState(!1);Qs(()=>s(!0),[]);const l=A||a&&globalThis?.document?.body;return l?P4.createPortal(Z.jsx(Ss.div,{...n,ref:t}),l):null});X4.displayName=SL;function LL(e,t){return $.useReducer((A,n)=>t[A][n]??A,e)}var Y4=e=>{const{present:t,children:A}=e,n=TL(t),a=typeof A=="function"?A({present:n.isPresent}):$.Children.only(A),s=ci(n.ref,NL(a));return typeof A=="function"||n.isPresent?$.cloneElement(a,{ref:s}):null};Y4.displayName="Presence";function TL(e){const[t,A]=$.useState(),n=$.useRef({}),a=$.useRef(e),s=$.useRef("none"),l=e?"mounted":"unmounted",[u,c]=LL(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const h=_d(n.current);s.current=u==="mounted"?h:"none"},[u]),Qs(()=>{const h=n.current,d=a.current;if(d!==e){const y=s.current,w=_d(h);e?c("MOUNT"):w==="none"||h?.display==="none"?c("UNMOUNT"):c(d&&y!==w?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Qs(()=>{if(t){let h;const d=t.ownerDocument.defaultView??window,B=w=>{const x=_d(n.current).includes(w.animationName);if(w.target===t&&x&&(c("ANIMATION_END"),!a.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},y=w=>{w.target===t&&(s.current=_d(n.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",B),t.addEventListener("animationend",B),()=>{d.clearTimeout(h),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",B),t.removeEventListener("animationend",B)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:$.useCallback(h=>{h&&(n.current=getComputedStyle(h)),A(h)},[])}}function _d(e){return e?.animationName||"none"}function NL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning;return A?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning,A?e.props.ref:e.props.ref||e.ref)}function _L({prop:e,defaultProp:t,onChange:A=()=>{}}){const[n,a]=HL({defaultProp:t,onChange:A}),s=e!==void 0,l=s?e:n,u=ca(A),c=$.useCallback(h=>{if(s){const B=typeof h=="function"?h(e):h;B!==e&&u(B)}else a(h)},[s,e,a,u]);return[l,c]}function HL({defaultProp:e,onChange:t}){const A=$.useState(e),[n]=A,a=$.useRef(n),s=ca(t);return $.useEffect(()=>{a.current!==n&&(s(n),a.current=n)},[n,a,s]),A}var DL="VisuallyHidden",D2=$.forwardRef((e,t)=>Z.jsx(Ss.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));D2.displayName=DL;var I2="ToastProvider",[O2,IL,OL]=wL("Toast"),[W4]=dg("Toast",[OL]),[ML,pg]=W4(I2),J4=e=>{const{__scopeToast:t,label:A="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:l}=e,[u,c]=$.useState(null),[h,d]=$.useState(0),B=$.useRef(!1),y=$.useRef(!1);return A.trim()||console.error(`Invalid prop \`label\` supplied to \`${I2}\`. Expected non-empty \`string\`.`),Z.jsx(O2.Provider,{scope:t,children:Z.jsx(ML,{scope:t,label:A,duration:n,swipeDirection:a,swipeThreshold:s,toastCount:h,viewport:u,onViewportChange:c,onToastAdd:$.useCallback(()=>d(w=>w+1),[]),onToastRemove:$.useCallback(()=>d(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:B,isClosePausedRef:y,children:l})})};J4.displayName=I2;var Z4="ToastViewport",RL=["F8"],B1="toast.viewportPause",w1="toast.viewportResume",$4=$.forwardRef((e,t)=>{const{__scopeToast:A,hotkey:n=RL,label:a="Notifications ({hotkey})",...s}=e,l=pg(Z4,A),u=IL(A),c=$.useRef(null),h=$.useRef(null),d=$.useRef(null),B=$.useRef(null),y=ci(t,B,l.onViewportChange),w=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=l.toastCount>0;$.useEffect(()=>{const S=E=>{n.length!==0&&n.every(H=>E[H]||E.code===H)&&B.current?.focus()};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[n]),$.useEffect(()=>{const S=c.current,E=B.current;if(U&&S&&E){const _=()=>{if(!l.isClosePausedRef.current){const ne=new CustomEvent(B1);E.dispatchEvent(ne),l.isClosePausedRef.current=!0}},H=()=>{if(l.isClosePausedRef.current){const ne=new CustomEvent(w1);E.dispatchEvent(ne),l.isClosePausedRef.current=!1}},D=ne=>{!S.contains(ne.relatedTarget)&&H()},q=()=>{S.contains(document.activeElement)||H()};return S.addEventListener("focusin",_),S.addEventListener("focusout",D),S.addEventListener("pointermove",_),S.addEventListener("pointerleave",q),window.addEventListener("blur",_),window.addEventListener("focus",H),()=>{S.removeEventListener("focusin",_),S.removeEventListener("focusout",D),S.removeEventListener("pointermove",_),S.removeEventListener("pointerleave",q),window.removeEventListener("blur",_),window.removeEventListener("focus",H)}}},[U,l.isClosePausedRef]);const x=$.useCallback(({tabbingDirection:S})=>{const _=u().map(H=>{const D=H.ref.current,q=[D,...ZL(D)];return S==="forwards"?q:q.reverse()});return(S==="forwards"?_.reverse():_).flat()},[u]);return $.useEffect(()=>{const S=B.current;if(S){const E=_=>{const H=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!H){const q=document.activeElement,ne=_.shiftKey;if(_.target===S&&ne){h.current?.focus();return}const P=x({tabbingDirection:ne?"backwards":"forwards"}),le=P.findIndex(I=>I===q);im(P.slice(le+1))?_.preventDefault():ne?h.current?.focus():d.current?.focus()}};return S.addEventListener("keydown",E),()=>S.removeEventListener("keydown",E)}},[u,x]),Z.jsxs(FL,{ref:c,role:"region","aria-label":a.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:U?void 0:"none"},children:[U&&Z.jsx(v1,{ref:h,onFocusFromOutsideViewport:()=>{const S=x({tabbingDirection:"forwards"});im(S)}}),Z.jsx(O2.Slot,{scope:A,children:Z.jsx(Ss.ol,{tabIndex:-1,...s,ref:y})}),U&&Z.jsx(v1,{ref:d,onFocusFromOutsideViewport:()=>{const S=x({tabbingDirection:"backwards"});im(S)}})]})});$4.displayName=Z4;var ex="ToastFocusProxy",v1=$.forwardRef((e,t)=>{const{__scopeToast:A,onFocusFromOutsideViewport:n,...a}=e,s=pg(ex,A);return Z.jsx(D2,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:l=>{const u=l.relatedTarget;!s.viewport?.contains(u)&&n()}})});v1.displayName=ex;var gg="Toast",kL="toast.swipeStart",PL="toast.swipeMove",KL="toast.swipeCancel",jL="toast.swipeEnd",tx=$.forwardRef((e,t)=>{const{forceMount:A,open:n,defaultOpen:a,onOpenChange:s,...l}=e,[u=!0,c]=_L({prop:n,defaultProp:a,onChange:s});return Z.jsx(Y4,{present:A||u,children:Z.jsx(zL,{open:u,...l,ref:t,onClose:()=>c(!1),onPause:ca(e.onPause),onResume:ca(e.onResume),onSwipeStart:Hi(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Hi(e.onSwipeMove,h=>{const{x:d,y:B}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${B}px`)}),onSwipeCancel:Hi(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Hi(e.onSwipeEnd,h=>{const{x:d,y:B}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${B}px`),c(!1)})})})});tx.displayName=gg;var[VL,GL]=W4(gg,{onClose(){}}),zL=$.forwardRef((e,t)=>{const{__scopeToast:A,type:n="foreground",duration:a,open:s,onClose:l,onEscapeKeyDown:u,onPause:c,onResume:h,onSwipeStart:d,onSwipeMove:B,onSwipeCancel:y,onSwipeEnd:w,...U}=e,x=pg(gg,A),[S,E]=$.useState(null),_=ci(t,W=>E(W)),H=$.useRef(null),D=$.useRef(null),q=a||x.duration,ne=$.useRef(0),ee=$.useRef(q),K=$.useRef(0),{onToastAdd:P,onToastRemove:le}=x,I=ca(()=>{S?.contains(document.activeElement)&&x.viewport?.focus(),l()}),j=$.useCallback(W=>{!W||W===1/0||(window.clearTimeout(K.current),ne.current=new Date().getTime(),K.current=window.setTimeout(I,W))},[I]);$.useEffect(()=>{const W=x.viewport;if(W){const ge=()=>{j(ee.current),h?.()},J=()=>{const se=new Date().getTime()-ne.current;ee.current=ee.current-se,window.clearTimeout(K.current),c?.()};return W.addEventListener(B1,J),W.addEventListener(w1,ge),()=>{W.removeEventListener(B1,J),W.removeEventListener(w1,ge)}}},[x.viewport,q,c,h,j]),$.useEffect(()=>{s&&!x.isClosePausedRef.current&&j(q)},[s,q,x.isClosePausedRef,j]),$.useEffect(()=>(P(),()=>le()),[P,le]);const ae=$.useMemo(()=>S?ox(S):null,[S]);return x.viewport?Z.jsxs(Z.Fragment,{children:[ae&&Z.jsx(qL,{__scopeToast:A,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:ae}),Z.jsx(VL,{scope:A,onClose:I,children:Lh.createPortal(Z.jsx(O2.ItemSlot,{scope:A,children:Z.jsx(QL,{asChild:!0,onEscapeKeyDown:Hi(u,()=>{x.isFocusedToastEscapeKeyDownRef.current||I(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:Z.jsx(Ss.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":x.swipeDirection,...U,ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Hi(e.onKeyDown,W=>{W.key==="Escape"&&(u?.(W.nativeEvent),W.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:Hi(e.onPointerDown,W=>{W.button===0&&(H.current={x:W.clientX,y:W.clientY})}),onPointerMove:Hi(e.onPointerMove,W=>{if(!H.current)return;const ge=W.clientX-H.current.x,J=W.clientY-H.current.y,se=!!D.current,X=["left","right"].includes(x.swipeDirection),me=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,Se=X?me(0,ge):0,z=X?0:me(0,J),L=W.pointerType==="touch"?10:2,M={x:Se,y:z},G={originalEvent:W,delta:M};se?(D.current=M,Hd(PL,B,G,{discrete:!1})):Ly(M,x.swipeDirection,L)?(D.current=M,Hd(kL,d,G,{discrete:!1}),W.target.setPointerCapture(W.pointerId)):(Math.abs(ge)>L||Math.abs(J)>L)&&(H.current=null)}),onPointerUp:Hi(e.onPointerUp,W=>{const ge=D.current,J=W.target;if(J.hasPointerCapture(W.pointerId)&&J.releasePointerCapture(W.pointerId),D.current=null,H.current=null,ge){const se=W.currentTarget,X={originalEvent:W,delta:ge};Ly(ge,x.swipeDirection,x.swipeThreshold)?Hd(jL,w,X,{discrete:!0}):Hd(KL,y,X,{discrete:!0}),se.addEventListener("click",me=>me.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),qL=e=>{const{__scopeToast:t,children:A,...n}=e,a=pg(gg,t),[s,l]=$.useState(!1),[u,c]=$.useState(!1);return WL(()=>l(!0)),$.useEffect(()=>{const h=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(h)},[]),u?null:Z.jsx(X4,{asChild:!0,children:Z.jsx(D2,{...n,children:s&&Z.jsxs(Z.Fragment,{children:[a.label," ",A]})})})},XL="ToastTitle",Ax=$.forwardRef((e,t)=>{const{__scopeToast:A,...n}=e;return Z.jsx(Ss.div,{...n,ref:t})});Ax.displayName=XL;var YL="ToastDescription",nx=$.forwardRef((e,t)=>{const{__scopeToast:A,...n}=e;return Z.jsx(Ss.div,{...n,ref:t})});nx.displayName=YL;var rx="ToastAction",ix=$.forwardRef((e,t)=>{const{altText:A,...n}=e;return A.trim()?Z.jsx(sx,{altText:A,asChild:!0,children:Z.jsx(M2,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rx}\`. Expected non-empty \`string\`.`),null)});ix.displayName=rx;var ax="ToastClose",M2=$.forwardRef((e,t)=>{const{__scopeToast:A,...n}=e,a=GL(ax,A);return Z.jsx(sx,{asChild:!0,children:Z.jsx(Ss.button,{type:"button",...n,ref:t,onClick:Hi(e.onClick,a.onClose)})})});M2.displayName=ax;var sx=$.forwardRef((e,t)=>{const{__scopeToast:A,altText:n,...a}=e;return Z.jsx(Ss.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})});function ox(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),JL(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!a)if(s){const l=n.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...ox(n))}}),t}function Hd(e,t,A,{discrete:n}){const a=A.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:A});t&&a.addEventListener(e,t,{once:!0}),n?K4(a,s):a.dispatchEvent(s)}var Ly=(e,t,A=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),s=n>a;return t==="left"||t==="right"?s&&n>A:!s&&a>A};function WL(e=()=>{}){const t=ca(e);Qs(()=>{let A=0,n=0;return A=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(A),window.cancelAnimationFrame(n)}},[t])}function JL(e){return e.nodeType===e.ELEMENT_NODE}function ZL(e){const t=[],A=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;A.nextNode();)t.push(A.currentNode);return t}function im(e){const t=document.activeElement;return e.some(A=>A===t?!0:(A.focus(),document.activeElement!==t))}var $L=J4,lx=$4,ux=tx,cx=Ax,fx=nx,hx=ix,dx=M2;function px(e){var t,A,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Ny=gx,mx=(e,t)=>A=>{var n;if(t?.variants==null)return Ny(e,A?.class,A?.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(h=>{const d=A?.[h],B=s?.[h];if(d===null)return null;const y=Ty(d)||Ty(B);return a[h][y]}),u=A&&Object.entries(A).reduce((h,d)=>{let[B,y]=d;return y===void 0||(h[B]=y),h},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((h,d)=>{let{class:B,className:y,...w}=d;return Object.entries(w).every(U=>{let[x,S]=U;return Array.isArray(S)?S.includes({...s,...u}[x]):{...s,...u}[x]===S})?[...h,B,y]:h},[]);return Ny(e,l,c,A?.class,A?.className)};/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const e6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),t6=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,A,n)=>n?n.toUpperCase():A.toLowerCase()),_y=e=>{const t=t6(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bx=(...e)=>e.filter((t,A,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===A).join(" ").trim(),A6=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var n6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r6=$.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:A=2,absoluteStrokeWidth:n,className:a="",children:s,iconNode:l,...u},c)=>$.createElement("svg",{ref:c,...n6,width:t,height:t,stroke:e,strokeWidth:n?Number(A)*24/Number(t):A,className:Bx("lucide",a),...!s&&!A6(u)&&{"aria-hidden":"true"},...u},[...l.map(([h,d])=>$.createElement(h,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yn=(e,t)=>{const A=$.forwardRef(({className:n,...a},s)=>$.createElement(r6,{ref:s,iconNode:t,className:Bx(`lucide-${e6(_y(e))}`,`lucide-${e}`,n),...a}));return A.displayName=_y(e),A};/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const i6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],a6=Yn("arrow-right",i6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s6=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],o6=Yn("calendar",s6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],u6=Yn("circle-alert",l6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c6=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],f6=Yn("code-xml",c6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h6=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],d6=Yn("code",h6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p6=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],g6=Yn("download",p6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const m6=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],B6=Yn("external-link",m6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w6=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],v6=Yn("file-text",w6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y6=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],wx=Yn("github",y6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],C6=Yn("globe",b6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const x6=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],U6=Yn("linkedin",x6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E6=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],vx=Yn("mail",E6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q6=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],yx=Yn("map-pin",Q6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F6=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],S6=Yn("menu",F6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L6=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],T6=Yn("message-square",L6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N6=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],_6=Yn("panels-top-left",N6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H6=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],bx=Yn("phone",H6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D6=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],I6=Yn("server",D6);/** * @license lucide-react v0.545.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const O6=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cx=Yn("x",O6),R2="-",M6=e=>{const t=k6(e),{conflictingClassGroups:A,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const u=l.split(R2);return u[0]===""&&u.length!==1&&u.shift(),xx(u,t)||R6(l)},getConflictingClassGroupIds:(l,u)=>{const c=A[l]||[];return u&&n[l]?[...c,...n[l]]:c}}},xx=(e,t)=>{if(e.length===0)return t.classGroupId;const A=e[0],n=t.nextPart.get(A),a=n?xx(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(R2);return t.validators.find(({validator:l})=>l(s))?.classGroupId},Hy=/^\[(.+)\]$/,R6=e=>{if(Hy.test(e)){const t=Hy.exec(e)[1],A=t?.substring(0,t.indexOf(":"));if(A)return"arbitrary.."+A}},k6=e=>{const{theme:t,classGroups:A}=e,n={nextPart:new Map,validators:[]};for(const a in A)y1(A[a],n,a,t);return n},y1=(e,t,A,n)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:Dy(t,a);s.classGroupId=A;return}if(typeof a=="function"){if(P6(a)){y1(a(n),t,A,n);return}t.validators.push({validator:a,classGroupId:A});return}Object.entries(a).forEach(([s,l])=>{y1(l,Dy(t,s),A,n)})})},Dy=(e,t)=>{let A=e;return t.split(R2).forEach(n=>{A.nextPart.has(n)||A.nextPart.set(n,{nextPart:new Map,validators:[]}),A=A.nextPart.get(n)}),A},P6=e=>e.isThemeGetter,K6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,A=new Map,n=new Map;const a=(s,l)=>{A.set(s,l),t++,t>e&&(t=0,n=A,A=new Map)};return{get(s){let l=A.get(s);if(l!==void 0)return l;if((l=n.get(s))!==void 0)return a(s,l),l},set(s,l){A.has(s)?A.set(s,l):a(s,l)}}},b1="!",C1=":",j6=C1.length,V6=e=>{const{prefix:t,experimentalParseClassName:A}=e;let n=a=>{const s=[];let l=0,u=0,c=0,h;for(let U=0;Uc?h-c:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:B,maybePostfixModifierPosition:w}};if(t){const a=t+C1,s=n;n=l=>l.startsWith(a)?s(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(A){const a=n;n=s=>A({className:s,parseClassName:a})}return n},G6=e=>e.endsWith(b1)?e.substring(0,e.length-1):e.startsWith(b1)?e.substring(1):e,z6=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const a=[];let s=[];return n.forEach(l=>{l[0]==="["||t[l]?(a.push(...s.sort(),l),s=[]):s.push(l)}),a.push(...s.sort()),a}},q6=e=>({cache:K6(e.cacheSize),parseClassName:V6(e),sortModifiers:z6(e),...M6(e)}),X6=/\s+/,Y6=(e,t)=>{const{parseClassName:A,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:s}=t,l=[],u=e.trim().split(X6);let c="";for(let h=u.length-1;h>=0;h-=1){const d=u[h],{isExternal:B,modifiers:y,hasImportantModifier:w,baseClassName:U,maybePostfixModifierPosition:x}=A(d);if(B){c=d+(c.length>0?" "+c:c);continue}let S=!!x,E=n(S?U.substring(0,x):U);if(!E){if(!S){c=d+(c.length>0?" "+c:c);continue}if(E=n(U),!E){c=d+(c.length>0?" "+c:c);continue}S=!1}const _=s(y).join(":"),H=w?_+b1:_,D=H+E;if(l.includes(D))continue;l.push(D);const q=a(E,S);for(let ne=0;ne0?" "+c:c)}return c};function W6(){let e=0,t,A,n="";for(;e{if(typeof e=="string")return e;let t,A="";for(let n=0;nB(d),e());return A=q6(h),n=A.cache.get,a=A.cache.set,s=u,u(c)}function u(c){const h=n(c);if(h)return h;const d=Y6(c,A);return a(c,d),d}return function(){return s(W6.apply(null,arguments))}}const qn=e=>{const t=A=>A[e]||[];return t.isThemeGetter=!0,t},Ex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Z6=/^\d+\/\d+$/,$6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,AT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cc=e=>Z6.test(e),qt=e=>!!e&&!Number.isNaN(Number(e)),tl=e=>!!e&&Number.isInteger(Number(e)),am=e=>e.endsWith("%")&&qt(e.slice(0,-1)),oo=e=>$6.test(e),rT=()=>!0,iT=e=>eT.test(e)&&!tT.test(e),Fx=()=>!1,aT=e=>AT.test(e),sT=e=>nT.test(e),oT=e=>!nt(e)&&!rt(e),lT=e=>Gc(e,Tx,Fx),nt=e=>Ex.test(e),tu=e=>Gc(e,Nx,iT),sm=e=>Gc(e,dT,qt),Iy=e=>Gc(e,Sx,Fx),uT=e=>Gc(e,Lx,sT),Dd=e=>Gc(e,_x,aT),rt=e=>Qx.test(e),kf=e=>zc(e,Nx),cT=e=>zc(e,pT),Oy=e=>zc(e,Sx),fT=e=>zc(e,Tx),hT=e=>zc(e,Lx),Id=e=>zc(e,_x,!0),Gc=(e,t,A)=>{const n=Ex.exec(e);return n?n[1]?t(n[1]):A(n[2]):!1},zc=(e,t,A=!1)=>{const n=Qx.exec(e);return n?n[1]?t(n[1]):A:!1},Sx=e=>e==="position"||e==="percentage",Lx=e=>e==="image"||e==="url",Tx=e=>e==="length"||e==="size"||e==="bg-size",Nx=e=>e==="length",dT=e=>e==="number",pT=e=>e==="family-name",_x=e=>e==="shadow",gT=()=>{const e=qn("color"),t=qn("font"),A=qn("text"),n=qn("font-weight"),a=qn("tracking"),s=qn("leading"),l=qn("breakpoint"),u=qn("container"),c=qn("spacing"),h=qn("radius"),d=qn("shadow"),B=qn("inset-shadow"),y=qn("text-shadow"),w=qn("drop-shadow"),U=qn("blur"),x=qn("perspective"),S=qn("aspect"),E=qn("ease"),_=qn("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...D(),rt,nt],ne=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto","contain","none"],K=()=>[rt,nt,c],P=()=>[cc,"full","auto",...K()],le=()=>[tl,"none","subgrid",rt,nt],I=()=>["auto",{span:["full",tl,rt,nt]},tl,rt,nt],j=()=>[tl,"auto",rt,nt],ae=()=>["auto","min","max","fr",rt,nt],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",...K()],se=()=>[cc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],X=()=>[e,rt,nt],me=()=>[...D(),Oy,Iy,{position:[rt,nt]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",fT,lT,{size:[rt,nt]}],L=()=>[am,kf,tu],M=()=>["","none","full",h,rt,nt],G=()=>["",qt,kf,tu],oe=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[qt,am,Oy,Iy],Qe=()=>["","none",U,rt,nt],xe=()=>["none",qt,rt,nt],_e=()=>["none",qt,rt,nt],Ke=()=>[qt,rt,nt],Ge=()=>[cc,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oo],breakpoint:[oo],color:[rT],container:[oo],"drop-shadow":[oo],ease:["in","out","in-out"],font:[oT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oo],shadow:[oo],spacing:["px",qt],text:[oo],"text-shadow":[oo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",cc,nt,rt,S]}],container:["container"],columns:[{columns:[qt,nt,rt,u]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[tl,"auto",rt,nt]}],basis:[{basis:[cc,"full","auto",u,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[qt,cc,"auto","initial","none",nt]}],grow:[{grow:["",qt,rt,nt]}],shrink:[{shrink:["",qt,rt,nt]}],order:[{order:[tl,"first","last","none",rt,nt]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],w:[{w:[u,"screen",...se()]}],"min-w":[{"min-w":[u,"screen","none",...se()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",A,kf,tu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,rt,sm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",am,nt]}],"font-family":[{font:[cT,nt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,rt,nt]}],"line-clamp":[{"line-clamp":[qt,"none",rt,sm]}],leading:[{leading:[s,...K()]}],"list-image":[{"list-image":["none",rt,nt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",rt,nt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[qt,"from-font","auto",rt,tu]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[qt,"auto",rt,nt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",rt,nt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",rt,nt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tl,rt,nt],radial:["",rt,nt],conic:[tl,rt,nt]},hT,uT]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[qt,rt,nt]}],"outline-w":[{outline:["",qt,kf,tu]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",d,Id,Dd]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",B,Id,Dd]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[qt,tu]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",y,Id,Dd]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[qt,rt,nt]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[qt]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[rt,nt]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[qt]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",rt,nt]}],filter:[{filter:["","none",rt,nt]}],blur:[{blur:Qe()}],brightness:[{brightness:[qt,rt,nt]}],contrast:[{contrast:[qt,rt,nt]}],"drop-shadow":[{"drop-shadow":["","none",w,Id,Dd]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",qt,rt,nt]}],"hue-rotate":[{"hue-rotate":[qt,rt,nt]}],invert:[{invert:["",qt,rt,nt]}],saturate:[{saturate:[qt,rt,nt]}],sepia:[{sepia:["",qt,rt,nt]}],"backdrop-filter":[{"backdrop-filter":["","none",rt,nt]}],"backdrop-blur":[{"backdrop-blur":Qe()}],"backdrop-brightness":[{"backdrop-brightness":[qt,rt,nt]}],"backdrop-contrast":[{"backdrop-contrast":[qt,rt,nt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",qt,rt,nt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qt,rt,nt]}],"backdrop-invert":[{"backdrop-invert":["",qt,rt,nt]}],"backdrop-opacity":[{"backdrop-opacity":[qt,rt,nt]}],"backdrop-saturate":[{"backdrop-saturate":[qt,rt,nt]}],"backdrop-sepia":[{"backdrop-sepia":["",qt,rt,nt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",rt,nt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[qt,"initial",rt,nt]}],ease:[{ease:["linear","initial",E,rt,nt]}],delay:[{delay:[qt,rt,nt]}],animate:[{animate:["none",_,rt,nt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,rt,nt]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Ke()}],"skew-x":[{"skew-x":Ke()}],"skew-y":[{"skew-y":Ke()}],transform:[{transform:[rt,nt,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",rt,nt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",rt,nt]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[qt,kf,tu,sm]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mT=J6(gT);function Sr(...e){return mT(gx(e))}const BT=$L,Hx=$.forwardRef(({className:e,...t},A)=>Z.jsx(lx,{ref:A,className:Sr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Hx.displayName=lx.displayName;const wT=mx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Dx=$.forwardRef(({className:e,variant:t,...A},n)=>Z.jsx(ux,{ref:n,className:Sr(wT({variant:t}),e),...A}));Dx.displayName=ux.displayName;const vT=$.forwardRef(({className:e,...t},A)=>Z.jsx(hx,{ref:A,className:Sr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));vT.displayName=hx.displayName;const Ix=$.forwardRef(({className:e,...t},A)=>Z.jsx(dx,{ref:A,className:Sr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:Z.jsx(Cx,{className:"h-4 w-4"})}));Ix.displayName=dx.displayName;const Ox=$.forwardRef(({className:e,...t},A)=>Z.jsx(cx,{ref:A,className:Sr("text-sm font-semibold",e),...t}));Ox.displayName=cx.displayName;const Mx=$.forwardRef(({className:e,...t},A)=>Z.jsx(fx,{ref:A,className:Sr("text-sm opacity-90",e),...t}));Mx.displayName=fx.displayName;function yT(){const{toasts:e}=k4();return Z.jsxs(BT,{children:[e.map(function({id:t,title:A,description:n,action:a,...s}){return Z.jsxs(Dx,{...s,children:[Z.jsxs("div",{className:"grid gap-1",children:[A&&Z.jsx(Ox,{children:A}),n&&Z.jsx(Mx,{children:n})]}),a,Z.jsx(Ix,{})]},t)}),Z.jsx(Hx,{})]})}function fc(e,t,{checkForDefaultPrevented:A=!0}={}){return function(a){if(e?.(a),A===!1||!a.defaultPrevented)return t?.(a)}}function om(e,t,{checkForDefaultPrevented:A=!0}={}){return function(a){if(e?.(a),A===!1||!a.defaultPrevented)return t?.(a)}}function bT(e){const t=CT(e),A=$.forwardRef((n,a)=>{const{children:s,...l}=n,u=$.Children.toArray(s),c=u.find(UT);if(c){const h=c.props.children,d=u.map(B=>B===c?$.Children.count(h)>1?$.Children.only(null):$.isValidElement(h)?h.props.children:null:B);return Z.jsx(t,{...l,ref:a,children:$.isValidElement(h)?$.cloneElement(h,void 0,d):null})}return Z.jsx(t,{...l,ref:a,children:s})});return A.displayName=`${e}.Slot`,A}function CT(e){const t=$.forwardRef((A,n)=>{const{children:a,...s}=A;if($.isValidElement(a)){const l=QT(a),u=ET(s,a.props);return a.type!==$.Fragment&&(u.ref=n?hg(n,l):l),$.cloneElement(a,u)}return $.Children.count(a)>1?$.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xT=Symbol("radix.slottable");function UT(e){return $.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xT}function ET(e,t){const A={...t};for(const n in t){const a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?A[n]=(...u)=>{const c=s(...u);return a(...u),c}:a&&(A[n]=a):n==="style"?A[n]={...a,...s}:n==="className"&&(A[n]=[a,s].filter(Boolean).join(" "))}return{...e,...A}}function QT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning;return A?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning,A?e.props.ref:e.props.ref||e.ref)}var FT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yl=FT.reduce((e,t)=>{const A=bT(`Primitive.${t}`),n=$.forwardRef((a,s)=>{const{asChild:l,...u}=a,c=l?A:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Z.jsx(c,{...u,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ST(e,t){e&&Lh.flushSync(()=>e.dispatchEvent(t))}var LT="DismissableLayer",x1="dismissableLayer.update",TT="dismissableLayer.pointerDownOutside",NT="dismissableLayer.focusOutside",My,Rx=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kx=$.forwardRef((e,t)=>{const{disableOutsidePointerEvents:A=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,h=$.useContext(Rx),[d,B]=$.useState(null),y=d?.ownerDocument??globalThis?.document,[,w]=$.useState({}),U=ci(t,ee=>B(ee)),x=Array.from(h.layers),[S]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(S),_=d?x.indexOf(d):-1,H=h.layersWithOutsidePointerEventsDisabled.size>0,D=_>=E,q=DT(ee=>{const K=ee.target,P=[...h.branches].some(le=>le.contains(K));!D||P||(a?.(ee),l?.(ee),ee.defaultPrevented||u?.())},y),ne=IT(ee=>{const K=ee.target;[...h.branches].some(le=>le.contains(K))||(s?.(ee),l?.(ee),ee.defaultPrevented||u?.())},y);return j4(ee=>{_===h.layers.size-1&&(n?.(ee),!ee.defaultPrevented&&u&&(ee.preventDefault(),u()))},y),$.useEffect(()=>{if(d)return A&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(My=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(d)),h.layers.add(d),Ry(),()=>{A&&h.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=My)}},[d,y,A,h]),$.useEffect(()=>()=>{d&&(h.layers.delete(d),h.layersWithOutsidePointerEventsDisabled.delete(d),Ry())},[d,h]),$.useEffect(()=>{const ee=()=>w({});return document.addEventListener(x1,ee),()=>document.removeEventListener(x1,ee)},[]),Z.jsx(yl.div,{...c,ref:U,style:{pointerEvents:H?D?"auto":"none":void 0,...e.style},onFocusCapture:om(e.onFocusCapture,ne.onFocusCapture),onBlurCapture:om(e.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:om(e.onPointerDownCapture,q.onPointerDownCapture)})});kx.displayName=LT;var _T="DismissableLayerBranch",HT=$.forwardRef((e,t)=>{const A=$.useContext(Rx),n=$.useRef(null),a=ci(t,n);return $.useEffect(()=>{const s=n.current;if(s)return A.branches.add(s),()=>{A.branches.delete(s)}},[A.branches]),Z.jsx(yl.div,{...e,ref:a})});HT.displayName=_T;function DT(e,t=globalThis?.document){const A=ca(e),n=$.useRef(!1),a=$.useRef(()=>{});return $.useEffect(()=>{const s=u=>{if(u.target&&!n.current){let c=function(){Px(TT,A,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);n.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,A]),{onPointerDownCapture:()=>n.current=!0}}function IT(e,t=globalThis?.document){const A=ca(e),n=$.useRef(!1);return $.useEffect(()=>{const a=s=>{s.target&&!n.current&&Px(NT,A,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,A]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ry(){const e=new CustomEvent(x1);document.dispatchEvent(e)}function Px(e,t,A,{discrete:n}){const a=A.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:A});t&&a.addEventListener(e,t,{once:!0}),n?ST(a,s):a.dispatchEvent(s)}const OT=["top","right","bottom","left"],pl=Math.min,_i=Math.max,Mp=Math.round,Od=Math.floor,Cs=e=>({x:e,y:e}),MT={left:"right",right:"left",bottom:"top",top:"bottom"},RT={start:"end",end:"start"};function U1(e,t,A){return _i(e,pl(t,A))}function go(e,t){return typeof e=="function"?e(t):e}function mo(e){return e.split("-")[0]}function qc(e){return e.split("-")[1]}function k2(e){return e==="x"?"y":"x"}function P2(e){return e==="y"?"height":"width"}const kT=new Set(["top","bottom"]);function ys(e){return kT.has(mo(e))?"y":"x"}function K2(e){return k2(ys(e))}function PT(e,t,A){A===void 0&&(A=!1);const n=qc(e),a=K2(e),s=P2(a);let l=a==="x"?n===(A?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Rp(l)),[l,Rp(l)]}function KT(e){const t=Rp(e);return[E1(e),t,E1(t)]}function E1(e){return e.replace(/start|end/g,t=>RT[t])}const ky=["left","right"],Py=["right","left"],jT=["top","bottom"],VT=["bottom","top"];function GT(e,t,A){switch(e){case"top":case"bottom":return A?t?Py:ky:t?ky:Py;case"left":case"right":return t?jT:VT;default:return[]}}function zT(e,t,A,n){const a=qc(e);let s=GT(mo(e),A==="start",n);return a&&(s=s.map(l=>l+"-"+a),t&&(s=s.concat(s.map(E1)))),s}function Rp(e){return e.replace(/left|right|bottom|top/g,t=>MT[t])}function qT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kx(e){return typeof e!="number"?qT(e):{top:e,right:e,bottom:e,left:e}}function kp(e){const{x:t,y:A,width:n,height:a}=e;return{width:n,height:a,top:A,left:t,right:t+n,bottom:A+a,x:t,y:A}}function Ky(e,t,A){let{reference:n,floating:a}=e;const s=ys(t),l=K2(t),u=P2(l),c=mo(t),h=s==="y",d=n.x+n.width/2-a.width/2,B=n.y+n.height/2-a.height/2,y=n[u]/2-a[u]/2;let w;switch(c){case"top":w={x:d,y:n.y-a.height};break;case"bottom":w={x:d,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:B};break;case"left":w={x:n.x-a.width,y:B};break;default:w={x:n.x,y:n.y}}switch(qc(t)){case"start":w[l]-=y*(A&&h?-1:1);break;case"end":w[l]+=y*(A&&h?-1:1);break}return w}const XT=async(e,t,A)=>{const{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:l}=A,u=s.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:B}=Ky(h,n,c),y=n,w={},U=0;for(let x=0;x({name:"arrow",options:e,async fn(t){const{x:A,y:n,placement:a,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:h,padding:d=0}=go(e,t)||{};if(h==null)return{};const B=Kx(d),y={x:A,y:n},w=K2(a),U=P2(w),x=await l.getDimensions(h),S=w==="y",E=S?"top":"left",_=S?"bottom":"right",H=S?"clientHeight":"clientWidth",D=s.reference[U]+s.reference[w]-y[w]-s.floating[U],q=y[w]-s.reference[w],ne=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let ee=ne?ne[H]:0;(!ee||!await(l.isElement==null?void 0:l.isElement(ne)))&&(ee=u.floating[H]||s.floating[U]);const K=D/2-q/2,P=ee/2-x[U]/2-1,le=pl(B[E],P),I=pl(B[_],P),j=le,ae=ee-x[U]-I,W=ee/2-x[U]/2+K,ge=U1(j,W,ae),J=!c.arrow&&qc(a)!=null&&W!==ge&&s.reference[U]/2-(WW<=0)){var I,j;const W=(((I=s.flip)==null?void 0:I.index)||0)+1,ge=ee[W];if(ge&&(!(B==="alignment"?_!==ys(ge):!1)||le.every(X=>ys(X.placement)===_?X.overflows[0]>0:!0)))return{data:{index:W,overflows:le},reset:{placement:ge}};let J=(j=le.filter(se=>se.overflows[0]<=0).sort((se,X)=>se.overflows[1]-X.overflows[1])[0])==null?void 0:j.placement;if(!J)switch(w){case"bestFit":{var ae;const se=(ae=le.filter(X=>{if(ne){const me=ys(X.placement);return me===_||me==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(me=>me>0).reduce((me,Se)=>me+Se,0)]).sort((X,me)=>X[1]-me[1])[0])==null?void 0:ae[0];se&&(J=se);break}case"initialPlacement":J=u;break}if(a!==J)return{reset:{placement:J}}}return{}}}};function jy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vy(e){return OT.some(t=>e[t]>=0)}const JT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:A}=t,{strategy:n="referenceHidden",...a}=go(e,t);switch(n){case"referenceHidden":{const s=await mh(t,{...a,elementContext:"reference"}),l=jy(s,A.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Vy(l)}}}case"escaped":{const s=await mh(t,{...a,altBoundary:!0}),l=jy(s,A.floating);return{data:{escapedOffsets:l,escaped:Vy(l)}}}default:return{}}}}},jx=new Set(["left","top"]);async function ZT(e,t){const{placement:A,platform:n,elements:a}=e,s=await(n.isRTL==null?void 0:n.isRTL(a.floating)),l=mo(A),u=qc(A),c=ys(A)==="y",h=jx.has(l)?-1:1,d=s&&c?-1:1,B=go(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:U}=typeof B=="number"?{mainAxis:B,crossAxis:0,alignmentAxis:null}:{mainAxis:B.mainAxis||0,crossAxis:B.crossAxis||0,alignmentAxis:B.alignmentAxis};return u&&typeof U=="number"&&(w=u==="end"?U*-1:U),c?{x:w*d,y:y*h}:{x:y*h,y:w*d}}const $T=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var A,n;const{x:a,y:s,placement:l,middlewareData:u}=t,c=await ZT(t,e);return l===((A=u.offset)==null?void 0:A.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:l}}}}},eN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:A,y:n,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:S=>{let{x:E,y:_}=S;return{x:E,y:_}}},...c}=go(e,t),h={x:A,y:n},d=await mh(t,c),B=ys(mo(a)),y=k2(B);let w=h[y],U=h[B];if(s){const S=y==="y"?"top":"left",E=y==="y"?"bottom":"right",_=w+d[S],H=w-d[E];w=U1(_,w,H)}if(l){const S=B==="y"?"top":"left",E=B==="y"?"bottom":"right",_=U+d[S],H=U-d[E];U=U1(_,U,H)}const x=u.fn({...t,[y]:w,[B]:U});return{...x,data:{x:x.x-A,y:x.y-n,enabled:{[y]:s,[B]:l}}}}}},tN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:A,y:n,placement:a,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:h=!0}=go(e,t),d={x:A,y:n},B=ys(a),y=k2(B);let w=d[y],U=d[B];const x=go(u,t),S=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const H=y==="y"?"height":"width",D=s.reference[y]-s.floating[H]+S.mainAxis,q=s.reference[y]+s.reference[H]-S.mainAxis;wq&&(w=q)}if(h){var E,_;const H=y==="y"?"width":"height",D=jx.has(mo(a)),q=s.reference[B]-s.floating[H]+(D&&((E=l.offset)==null?void 0:E[B])||0)+(D?0:S.crossAxis),ne=s.reference[B]+s.reference[H]+(D?0:((_=l.offset)==null?void 0:_[B])||0)-(D?S.crossAxis:0);Une&&(U=ne)}return{[y]:w,[B]:U}}}},AN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var A,n;const{placement:a,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...h}=go(e,t),d=await mh(t,h),B=mo(a),y=qc(a),w=ys(a)==="y",{width:U,height:x}=s.floating;let S,E;B==="top"||B==="bottom"?(S=B,E=y===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(E=B,S=y==="end"?"top":"bottom");const _=x-d.top-d.bottom,H=U-d.left-d.right,D=pl(x-d[S],_),q=pl(U-d[E],H),ne=!t.middlewareData.shift;let ee=D,K=q;if((A=t.middlewareData.shift)!=null&&A.enabled.x&&(K=H),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(ee=_),ne&&!y){const le=_i(d.left,0),I=_i(d.right,0),j=_i(d.top,0),ae=_i(d.bottom,0);w?K=U-2*(le!==0||I!==0?le+I:_i(d.left,d.right)):ee=x-2*(j!==0||ae!==0?j+ae:_i(d.top,d.bottom))}await c({...t,availableWidth:K,availableHeight:ee});const P=await l.getDimensions(u.floating);return U!==P.width||x!==P.height?{reset:{rects:!0}}:{}}}};function mg(){return typeof window<"u"}function Xc(e){return Vx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ii(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ls(e){var t;return(t=(Vx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vx(e){return mg()?e instanceof Node||e instanceof Ii(e).Node:!1}function Ga(e){return mg()?e instanceof Element||e instanceof Ii(e).Element:!1}function Fs(e){return mg()?e instanceof HTMLElement||e instanceof Ii(e).HTMLElement:!1}function Gy(e){return!mg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ii(e).ShadowRoot}const nN=new Set(["inline","contents"]);function Th(e){const{overflow:t,overflowX:A,overflowY:n,display:a}=za(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+A)&&!nN.has(a)}const rN=new Set(["table","td","th"]);function iN(e){return rN.has(Xc(e))}const aN=[":popover-open",":modal"];function Bg(e){return aN.some(t=>{try{return e.matches(t)}catch{return!1}})}const sN=["transform","translate","scale","rotate","perspective"],oN=["transform","translate","scale","rotate","perspective","filter"],lN=["paint","layout","strict","content"];function j2(e){const t=V2(),A=Ga(e)?za(e):e;return sN.some(n=>A[n]?A[n]!=="none":!1)||(A.containerType?A.containerType!=="normal":!1)||!t&&(A.backdropFilter?A.backdropFilter!=="none":!1)||!t&&(A.filter?A.filter!=="none":!1)||oN.some(n=>(A.willChange||"").includes(n))||lN.some(n=>(A.contain||"").includes(n))}function uN(e){let t=gl(e);for(;Fs(t)&&!kc(t);){if(j2(t))return t;if(Bg(t))return null;t=gl(t)}return null}function V2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cN=new Set(["html","body","#document"]);function kc(e){return cN.has(Xc(e))}function za(e){return Ii(e).getComputedStyle(e)}function wg(e){return Ga(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gl(e){if(Xc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gy(e)&&e.host||Ls(e);return Gy(t)?t.host:t}function Gx(e){const t=gl(e);return kc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fs(t)&&Th(t)?t:Gx(t)}function Bh(e,t,A){var n;t===void 0&&(t=[]),A===void 0&&(A=!0);const a=Gx(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),l=Ii(a);if(s){const u=Q1(l);return t.concat(l,l.visualViewport||[],Th(a)?a:[],u&&A?Bh(u):[])}return t.concat(a,Bh(a,[],A))}function Q1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zx(e){const t=za(e);let A=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Fs(e),s=a?e.offsetWidth:A,l=a?e.offsetHeight:n,u=Mp(A)!==s||Mp(n)!==l;return u&&(A=s,n=l),{width:A,height:n,$:u}}function G2(e){return Ga(e)?e:e.contextElement}function _c(e){const t=G2(e);if(!Fs(t))return Cs(1);const A=t.getBoundingClientRect(),{width:n,height:a,$:s}=zx(t);let l=(s?Mp(A.width):A.width)/n,u=(s?Mp(A.height):A.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const fN=Cs(0);function qx(e){const t=Ii(e);return!V2()||!t.visualViewport?fN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hN(e,t,A){return t===void 0&&(t=!1),!A||t&&A!==Ii(e)?!1:t}function gu(e,t,A,n){t===void 0&&(t=!1),A===void 0&&(A=!1);const a=e.getBoundingClientRect(),s=G2(e);let l=Cs(1);t&&(n?Ga(n)&&(l=_c(n)):l=_c(e));const u=hN(s,A,n)?qx(s):Cs(0);let c=(a.left+u.x)/l.x,h=(a.top+u.y)/l.y,d=a.width/l.x,B=a.height/l.y;if(s){const y=Ii(s),w=n&&Ga(n)?Ii(n):n;let U=y,x=Q1(U);for(;x&&n&&w!==U;){const S=_c(x),E=x.getBoundingClientRect(),_=za(x),H=E.left+(x.clientLeft+parseFloat(_.paddingLeft))*S.x,D=E.top+(x.clientTop+parseFloat(_.paddingTop))*S.y;c*=S.x,h*=S.y,d*=S.x,B*=S.y,c+=H,h+=D,U=Ii(x),x=Q1(U)}}return kp({width:d,height:B,x:c,y:h})}function vg(e,t){const A=wg(e).scrollLeft;return t?t.left+A:gu(Ls(e)).left+A}function Xx(e,t){const A=e.getBoundingClientRect(),n=A.left+t.scrollLeft-vg(e,A),a=A.top+t.scrollTop;return{x:n,y:a}}function dN(e){let{elements:t,rect:A,offsetParent:n,strategy:a}=e;const s=a==="fixed",l=Ls(n),u=t?Bg(t.floating):!1;if(n===l||u&&s)return A;let c={scrollLeft:0,scrollTop:0},h=Cs(1);const d=Cs(0),B=Fs(n);if((B||!B&&!s)&&((Xc(n)!=="body"||Th(l))&&(c=wg(n)),Fs(n))){const w=gu(n);h=_c(n),d.x=w.x+n.clientLeft,d.y=w.y+n.clientTop}const y=l&&!B&&!s?Xx(l,c):Cs(0);return{width:A.width*h.x,height:A.height*h.y,x:A.x*h.x-c.scrollLeft*h.x+d.x+y.x,y:A.y*h.y-c.scrollTop*h.y+d.y+y.y}}function pN(e){return Array.from(e.getClientRects())}function gN(e){const t=Ls(e),A=wg(e),n=e.ownerDocument.body,a=_i(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=_i(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-A.scrollLeft+vg(e);const u=-A.scrollTop;return za(n).direction==="rtl"&&(l+=_i(t.clientWidth,n.clientWidth)-a),{width:a,height:s,x:l,y:u}}const zy=25;function mN(e,t){const A=Ii(e),n=Ls(e),a=A.visualViewport;let s=n.clientWidth,l=n.clientHeight,u=0,c=0;if(a){s=a.width,l=a.height;const d=V2();(!d||d&&t==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}const h=vg(n);if(h<=0){const d=n.ownerDocument,B=d.body,y=getComputedStyle(B),w=d.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,U=Math.abs(n.clientWidth-B.clientWidth-w);U<=zy&&(s-=U)}else h<=zy&&(s+=h);return{width:s,height:l,x:u,y:c}}const BN=new Set(["absolute","fixed"]);function wN(e,t){const A=gu(e,!0,t==="fixed"),n=A.top+e.clientTop,a=A.left+e.clientLeft,s=Fs(e)?_c(e):Cs(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,c=a*s.x,h=n*s.y;return{width:l,height:u,x:c,y:h}}function qy(e,t,A){let n;if(t==="viewport")n=mN(e,A);else if(t==="document")n=gN(Ls(e));else if(Ga(t))n=wN(t,A);else{const a=qx(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return kp(n)}function Yx(e,t){const A=gl(e);return A===t||!Ga(A)||kc(A)?!1:za(A).position==="fixed"||Yx(A,t)}function vN(e,t){const A=t.get(e);if(A)return A;let n=Bh(e,[],!1).filter(u=>Ga(u)&&Xc(u)!=="body"),a=null;const s=za(e).position==="fixed";let l=s?gl(e):e;for(;Ga(l)&&!kc(l);){const u=za(l),c=j2(l);!c&&u.position==="fixed"&&(a=null),(s?!c&&!a:!c&&u.position==="static"&&!!a&&BN.has(a.position)||Th(l)&&!c&&Yx(e,l))?n=n.filter(d=>d!==l):a=u,l=gl(l)}return t.set(e,n),n}function yN(e){let{element:t,boundary:A,rootBoundary:n,strategy:a}=e;const l=[...A==="clippingAncestors"?Bg(t)?[]:vN(t,this._c):[].concat(A),n],u=l[0],c=l.reduce((h,d)=>{const B=qy(t,d,a);return h.top=_i(B.top,h.top),h.right=pl(B.right,h.right),h.bottom=pl(B.bottom,h.bottom),h.left=_i(B.left,h.left),h},qy(t,u,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bN(e){const{width:t,height:A}=zx(e);return{width:t,height:A}}function CN(e,t,A){const n=Fs(t),a=Ls(t),s=A==="fixed",l=gu(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const c=Cs(0);function h(){c.x=vg(a)}if(n||!n&&!s)if((Xc(t)!=="body"||Th(a))&&(u=wg(t)),n){const w=gu(t,!0,s,t);c.x=w.x+t.clientLeft,c.y=w.y+t.clientTop}else a&&h();s&&!n&&a&&h();const d=a&&!n&&!s?Xx(a,u):Cs(0),B=l.left+u.scrollLeft-c.x-d.x,y=l.top+u.scrollTop-c.y-d.y;return{x:B,y,width:l.width,height:l.height}}function lm(e){return za(e).position==="static"}function Xy(e,t){if(!Fs(e)||za(e).position==="fixed")return null;if(t)return t(e);let A=e.offsetParent;return Ls(e)===A&&(A=A.ownerDocument.body),A}function Wx(e,t){const A=Ii(e);if(Bg(e))return A;if(!Fs(e)){let a=gl(e);for(;a&&!kc(a);){if(Ga(a)&&!lm(a))return a;a=gl(a)}return A}let n=Xy(e,t);for(;n&&iN(n)&&lm(n);)n=Xy(n,t);return n&&kc(n)&&lm(n)&&!j2(n)?A:n||uN(e)||A}const xN=async function(e){const t=this.getOffsetParent||Wx,A=this.getDimensions,n=await A(e.floating);return{reference:CN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function UN(e){return za(e).direction==="rtl"}const EN={convertOffsetParentRelativeRectToViewportRelativeRect:dN,getDocumentElement:Ls,getClippingRect:yN,getOffsetParent:Wx,getElementRects:xN,getClientRects:pN,getDimensions:bN,getScale:_c,isElement:Ga,isRTL:UN};function Jx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QN(e,t){let A=null,n;const a=Ls(e);function s(){var u;clearTimeout(n),(u=A)==null||u.disconnect(),A=null}function l(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),s();const h=e.getBoundingClientRect(),{left:d,top:B,width:y,height:w}=h;if(u||t(),!y||!w)return;const U=Od(B),x=Od(a.clientWidth-(d+y)),S=Od(a.clientHeight-(B+w)),E=Od(d),H={rootMargin:-U+"px "+-x+"px "+-S+"px "+-E+"px",threshold:_i(0,pl(1,c))||1};let D=!0;function q(ne){const ee=ne[0].intersectionRatio;if(ee!==c){if(!D)return l();ee?l(!1,ee):n=setTimeout(()=>{l(!1,1e-7)},1e3)}ee===1&&!Jx(h,e.getBoundingClientRect())&&l(),D=!1}try{A=new IntersectionObserver(q,{...H,root:a.ownerDocument})}catch{A=new IntersectionObserver(q,H)}A.observe(e)}return l(!0),s}function FN(e,t,A,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,h=G2(e),d=a||s?[...h?Bh(h):[],...Bh(t)]:[];d.forEach(E=>{a&&E.addEventListener("scroll",A,{passive:!0}),s&&E.addEventListener("resize",A)});const B=h&&u?QN(h,A):null;let y=-1,w=null;l&&(w=new ResizeObserver(E=>{let[_]=E;_&&_.target===h&&w&&(w.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var H;(H=w)==null||H.observe(t)})),A()}),h&&!c&&w.observe(h),w.observe(t));let U,x=c?gu(e):null;c&&S();function S(){const E=gu(e);x&&!Jx(x,E)&&A(),x=E,U=requestAnimationFrame(S)}return A(),()=>{var E;d.forEach(_=>{a&&_.removeEventListener("scroll",A),s&&_.removeEventListener("resize",A)}),B?.(),(E=w)==null||E.disconnect(),w=null,c&&cancelAnimationFrame(U)}}const SN=$T,LN=eN,TN=WT,NN=AN,_N=JT,Yy=YT,HN=tN,DN=(e,t,A)=>{const n=new Map,a={platform:EN,...A},s={...a.platform,_c:n};return XT(e,t,{...a,platform:s})};var IN=typeof document<"u",ON=function(){},yp=IN?$.useLayoutEffect:ON;function Pp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let A,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(A=e.length,A!==t.length)return!1;for(n=A;n--!==0;)if(!Pp(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),A=a.length,A!==Object.keys(t).length)return!1;for(n=A;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=A;n--!==0;){const s=a[n];if(!(s==="_owner"&&e.$$typeof)&&!Pp(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Zx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wy(e,t){const A=Zx(e);return Math.round(t*A)/A}function um(e){const t=$.useRef(e);return yp(()=>{t.current=e}),t}function MN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:A="absolute",middleware:n=[],platform:a,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:c,open:h}=e,[d,B]=$.useState({x:0,y:0,strategy:A,placement:t,middlewareData:{},isPositioned:!1}),[y,w]=$.useState(n);Pp(y,n)||w(n);const[U,x]=$.useState(null),[S,E]=$.useState(null),_=$.useCallback(X=>{X!==ne.current&&(ne.current=X,x(X))},[]),H=$.useCallback(X=>{X!==ee.current&&(ee.current=X,E(X))},[]),D=s||U,q=l||S,ne=$.useRef(null),ee=$.useRef(null),K=$.useRef(d),P=c!=null,le=um(c),I=um(a),j=um(h),ae=$.useCallback(()=>{if(!ne.current||!ee.current)return;const X={placement:t,strategy:A,middleware:y};I.current&&(X.platform=I.current),DN(ne.current,ee.current,X).then(me=>{const Se={...me,isPositioned:j.current!==!1};W.current&&!Pp(K.current,Se)&&(K.current=Se,Lh.flushSync(()=>{B(Se)}))})},[y,t,A,I,j]);yp(()=>{h===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,B(X=>({...X,isPositioned:!1})))},[h]);const W=$.useRef(!1);yp(()=>(W.current=!0,()=>{W.current=!1}),[]),yp(()=>{if(D&&(ne.current=D),q&&(ee.current=q),D&&q){if(le.current)return le.current(D,q,ae);ae()}},[D,q,ae,le,P]);const ge=$.useMemo(()=>({reference:ne,floating:ee,setReference:_,setFloating:H}),[_,H]),J=$.useMemo(()=>({reference:D,floating:q}),[D,q]),se=$.useMemo(()=>{const X={position:A,left:0,top:0};if(!J.floating)return X;const me=Wy(J.floating,d.x),Se=Wy(J.floating,d.y);return u?{...X,transform:"translate("+me+"px, "+Se+"px)",...Zx(J.floating)>=1.5&&{willChange:"transform"}}:{position:A,left:me,top:Se}},[A,u,J.floating,d.x,d.y]);return $.useMemo(()=>({...d,update:ae,refs:ge,elements:J,floatingStyles:se}),[d,ae,ge,J,se])}const RN=e=>{function t(A){return{}.hasOwnProperty.call(A,"current")}return{name:"arrow",options:e,fn(A){const{element:n,padding:a}=typeof e=="function"?e(A):e;return n&&t(n)?n.current!=null?Yy({element:n.current,padding:a}).fn(A):{}:n?Yy({element:n,padding:a}).fn(A):{}}}},kN=(e,t)=>({...SN(e),options:[e,t]}),PN=(e,t)=>({...LN(e),options:[e,t]}),KN=(e,t)=>({...HN(e),options:[e,t]}),jN=(e,t)=>({...TN(e),options:[e,t]}),VN=(e,t)=>({...NN(e),options:[e,t]}),GN=(e,t)=>({..._N(e),options:[e,t]}),zN=(e,t)=>({...RN(e),options:[e,t]});var qN="Arrow",$x=$.forwardRef((e,t)=>{const{children:A,width:n=10,height:a=5,...s}=e;return Z.jsx(yl.svg,{...s,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?A:Z.jsx("polygon",{points:"0,0 30,0 15,10"})})});$x.displayName=qN;var XN=$x;function YN(e){const[t,A]=$.useState(void 0);return Qs(()=>{if(e){A({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,u;if("borderBoxSize"in s){const c=s.borderBoxSize,h=Array.isArray(c)?c[0]:c;l=h.inlineSize,u=h.blockSize}else l=e.offsetWidth,u=e.offsetHeight;A({width:l,height:u})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else A(void 0)},[e]),t}var e3="Popper",[t3,A3]=dg(e3),[sV,n3]=t3(e3),r3="PopperAnchor",i3=$.forwardRef((e,t)=>{const{__scopePopper:A,virtualRef:n,...a}=e,s=n3(r3,A),l=$.useRef(null),u=ci(t,l),c=$.useRef(null);return $.useEffect(()=>{const h=c.current;c.current=n?.current||l.current,h!==c.current&&s.onAnchorChange(c.current)}),n?null:Z.jsx(yl.div,{...a,ref:u})});i3.displayName=r3;var z2="PopperContent",[WN,JN]=t3(z2),a3=$.forwardRef((e,t)=>{const{__scopePopper:A,side:n="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:h=[],collisionPadding:d=0,sticky:B="partial",hideWhenDetached:y=!1,updatePositionStrategy:w="optimized",onPlaced:U,...x}=e,S=n3(z2,A),[E,_]=$.useState(null),H=ci(t,fe=>_(fe)),[D,q]=$.useState(null),ne=YN(D),ee=ne?.width??0,K=ne?.height??0,P=n+(s!=="center"?"-"+s:""),le=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(h)?h:[h],j=I.length>0,ae={padding:le,boundary:I.filter($N),altBoundary:j},{refs:W,floatingStyles:ge,placement:J,isPositioned:se,middlewareData:X}=MN({strategy:"fixed",placement:P,whileElementsMounted:(...fe)=>FN(...fe,{animationFrame:w==="always"}),elements:{reference:S.anchor},middleware:[kN({mainAxis:a+K,alignmentAxis:l}),c&&PN({mainAxis:!0,crossAxis:!1,limiter:B==="partial"?KN():void 0,...ae}),c&&jN({...ae}),VN({...ae,apply:({elements:fe,rects:Qe,availableWidth:xe,availableHeight:_e})=>{const{width:Ke,height:Ge}=Qe.reference,ze=fe.floating.style;ze.setProperty("--radix-popper-available-width",`${xe}px`),ze.setProperty("--radix-popper-available-height",`${_e}px`),ze.setProperty("--radix-popper-anchor-width",`${Ke}px`),ze.setProperty("--radix-popper-anchor-height",`${Ge}px`)}}),D&&zN({element:D,padding:u}),e8({arrowWidth:ee,arrowHeight:K}),y&&GN({strategy:"referenceHidden",...ae})]}),[me,Se]=l3(J),z=ca(U);Qs(()=>{se&&z?.()},[se,z]);const L=X.arrow?.x,M=X.arrow?.y,G=X.arrow?.centerOffset!==0,[oe,ue]=$.useState();return Qs(()=>{E&&ue(window.getComputedStyle(E).zIndex)},[E]),Z.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...ge,transform:se?ge.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Z.jsx(WN,{scope:A,placedSide:me,onArrowChange:q,arrowX:L,arrowY:M,shouldHideArrow:G,children:Z.jsx(yl.div,{"data-side":me,"data-align":Se,...x,ref:H,style:{...x.style,animation:se?void 0:"none"}})})})});a3.displayName=z2;var s3="PopperArrow",ZN={top:"bottom",right:"left",bottom:"top",left:"right"},o3=$.forwardRef(function(t,A){const{__scopePopper:n,...a}=t,s=JN(s3,n),l=ZN[s.placedSide];return Z.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:Z.jsx(XN,{...a,ref:A,style:{...a.style,display:"block"}})})});o3.displayName=s3;function $N(e){return e!==null}var e8=e=>({name:"transformOrigin",options:e,fn(t){const{placement:A,rects:n,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,c=l?0:e.arrowHeight,[h,d]=l3(A),B={start:"0%",center:"50%",end:"100%"}[d],y=(a.arrow?.x??0)+u/2,w=(a.arrow?.y??0)+c/2;let U="",x="";return h==="bottom"?(U=l?B:`${y}px`,x=`${-c}px`):h==="top"?(U=l?B:`${y}px`,x=`${n.floating.height+c}px`):h==="right"?(U=`${-c}px`,x=l?B:`${w}px`):h==="left"&&(U=`${n.floating.width+c}px`,x=l?B:`${w}px`),{data:{x:U,y:x}}}});function l3(e){const[t,A="center"]=e.split("-");return[t,A]}var t8=i3,A8=a3,n8=o3,r8="Portal",u3=$.forwardRef((e,t)=>{const{container:A,...n}=e,[a,s]=$.useState(!1);Qs(()=>s(!0),[]);const l=A||a&&globalThis?.document?.body;return l?P4.createPortal(Z.jsx(yl.div,{...n,ref:t}),l):null});u3.displayName=r8;function i8(e,t){return $.useReducer((A,n)=>t[A][n]??A,e)}var q2=e=>{const{present:t,children:A}=e,n=a8(t),a=typeof A=="function"?A({present:n.isPresent}):$.Children.only(A),s=ci(n.ref,s8(a));return typeof A=="function"||n.isPresent?$.cloneElement(a,{ref:s}):null};q2.displayName="Presence";function a8(e){const[t,A]=$.useState(),n=$.useRef(null),a=$.useRef(e),s=$.useRef("none"),l=e?"mounted":"unmounted",[u,c]=i8(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const h=Md(n.current);s.current=u==="mounted"?h:"none"},[u]),Qs(()=>{const h=n.current,d=a.current;if(d!==e){const y=s.current,w=Md(h);e?c("MOUNT"):w==="none"||h?.display==="none"?c("UNMOUNT"):c(d&&y!==w?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Qs(()=>{if(t){let h;const d=t.ownerDocument.defaultView??window,B=w=>{const x=Md(n.current).includes(CSS.escape(w.animationName));if(w.target===t&&x&&(c("ANIMATION_END"),!a.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},y=w=>{w.target===t&&(s.current=Md(n.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",B),t.addEventListener("animationend",B),()=>{d.clearTimeout(h),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",B),t.removeEventListener("animationend",B)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:$.useCallback(h=>{n.current=h?getComputedStyle(h):null,A(h)},[])}}function Md(e){return e?.animationName||"none"}function s8(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning;return A?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning,A?e.props.ref:e.props.ref||e.ref)}var o8=Symbol("radix.slottable");function l8(e){const t=({children:A})=>Z.jsx(Z.Fragment,{children:A});return t.displayName=`${e}.Slottable`,t.__radixId=o8,t}var u8=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),c8="VisuallyHidden",c3=$.forwardRef((e,t)=>Z.jsx(yl.span,{...e,ref:t,style:{...u8,...e.style}}));c3.displayName=c8;var f8=c3,[yg]=dg("Tooltip",[A3]),X2=A3(),f3="TooltipProvider",h8=700,Jy="tooltip.open",[d8,h3]=yg(f3),d3=e=>{const{__scopeTooltip:t,delayDuration:A=h8,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:s}=e,l=$.useRef(!0),u=$.useRef(!1),c=$.useRef(0);return $.useEffect(()=>{const h=c.current;return()=>window.clearTimeout(h)},[]),Z.jsx(d8,{scope:t,isOpenDelayedRef:l,delayDuration:A,onOpen:$.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:$.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:$.useCallback(h=>{u.current=h},[]),disableHoverableContent:a,children:s})};d3.displayName=f3;var p3="Tooltip",[oV,Nh]=yg(p3),F1="TooltipTrigger",p8=$.forwardRef((e,t)=>{const{__scopeTooltip:A,...n}=e,a=Nh(F1,A),s=h3(F1,A),l=X2(A),u=$.useRef(null),c=ci(t,u,a.onTriggerChange),h=$.useRef(!1),d=$.useRef(!1),B=$.useCallback(()=>h.current=!1,[]);return $.useEffect(()=>()=>document.removeEventListener("pointerup",B),[B]),Z.jsx(t8,{asChild:!0,...l,children:Z.jsx(yl.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:c,onPointerMove:fc(e.onPointerMove,y=>{y.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:fc(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:fc(e.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",B,{once:!0})}),onFocus:fc(e.onFocus,()=>{h.current||a.onOpen()}),onBlur:fc(e.onBlur,a.onClose),onClick:fc(e.onClick,a.onClose)})})});p8.displayName=F1;var Y2="TooltipPortal",[g8,m8]=yg(Y2,{forceMount:void 0}),g3=e=>{const{__scopeTooltip:t,forceMount:A,children:n,container:a}=e,s=Nh(Y2,t);return Z.jsx(g8,{scope:t,forceMount:A,children:Z.jsx(q2,{present:A||s.open,children:Z.jsx(u3,{asChild:!0,container:a,children:n})})})};g3.displayName=Y2;var Pc="TooltipContent",m3=$.forwardRef((e,t)=>{const A=m8(Pc,e.__scopeTooltip),{forceMount:n=A.forceMount,side:a="top",...s}=e,l=Nh(Pc,e.__scopeTooltip);return Z.jsx(q2,{present:n||l.open,children:l.disableHoverableContent?Z.jsx(B3,{side:a,...s,ref:t}):Z.jsx(B8,{side:a,...s,ref:t})})}),B8=$.forwardRef((e,t)=>{const A=Nh(Pc,e.__scopeTooltip),n=h3(Pc,e.__scopeTooltip),a=$.useRef(null),s=ci(t,a),[l,u]=$.useState(null),{trigger:c,onClose:h}=A,d=a.current,{onPointerInTransitChange:B}=n,y=$.useCallback(()=>{u(null),B(!1)},[B]),w=$.useCallback((U,x)=>{const S=U.currentTarget,E={x:U.clientX,y:U.clientY},_=C8(E,S.getBoundingClientRect()),H=x8(E,_),D=U8(x.getBoundingClientRect()),q=Q8([...H,...D]);u(q),B(!0)},[B]);return $.useEffect(()=>()=>y(),[y]),$.useEffect(()=>{if(c&&d){const U=S=>w(S,d),x=S=>w(S,c);return c.addEventListener("pointerleave",U),d.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",U),d.removeEventListener("pointerleave",x)}}},[c,d,w,y]),$.useEffect(()=>{if(l){const U=x=>{const S=x.target,E={x:x.clientX,y:x.clientY},_=c?.contains(S)||d?.contains(S),H=!E8(E,l);_?y():H&&(y(),h())};return document.addEventListener("pointermove",U),()=>document.removeEventListener("pointermove",U)}},[c,d,l,h,y]),Z.jsx(B3,{...e,ref:s})}),[w8,v8]=yg(p3,{isInside:!1}),y8=l8("TooltipContent"),B3=$.forwardRef((e,t)=>{const{__scopeTooltip:A,children:n,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:l,...u}=e,c=Nh(Pc,A),h=X2(A),{onClose:d}=c;return $.useEffect(()=>(document.addEventListener(Jy,d),()=>document.removeEventListener(Jy,d)),[d]),$.useEffect(()=>{if(c.trigger){const B=y=>{y.target?.contains(c.trigger)&&d()};return window.addEventListener("scroll",B,{capture:!0}),()=>window.removeEventListener("scroll",B,{capture:!0})}},[c.trigger,d]),Z.jsx(kx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:B=>B.preventDefault(),onDismiss:d,children:Z.jsxs(A8,{"data-state":c.stateAttribute,...h,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Z.jsx(y8,{children:n}),Z.jsx(w8,{scope:A,isInside:!0,children:Z.jsx(f8,{id:c.contentId,role:"tooltip",children:a||n})})]})})});m3.displayName=Pc;var w3="TooltipArrow",b8=$.forwardRef((e,t)=>{const{__scopeTooltip:A,...n}=e,a=X2(A);return v8(w3,A).isInside?null:Z.jsx(n8,{...a,...n,ref:t})});b8.displayName=w3;function C8(e,t){const A=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(A,n,a,s)){case s:return"left";case a:return"right";case A:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function x8(e,t,A=5){const n=[];switch(t){case"top":n.push({x:e.x-A,y:e.y+A},{x:e.x+A,y:e.y+A});break;case"bottom":n.push({x:e.x-A,y:e.y-A},{x:e.x+A,y:e.y-A});break;case"left":n.push({x:e.x+A,y:e.y-A},{x:e.x+A,y:e.y+A});break;case"right":n.push({x:e.x-A,y:e.y-A},{x:e.x-A,y:e.y+A});break}return n}function U8(e){const{top:t,right:A,bottom:n,left:a}=e;return[{x:a,y:t},{x:A,y:t},{x:A,y:n},{x:a,y:n}]}function E8(e,t){const{x:A,y:n}=e;let a=!1;for(let s=0,l=t.length-1;sn!=y>n&&A<(B-h)*(n-d)/(y-d)+h&&(a=!a)}return a}function Q8(e){const t=e.slice();return t.sort((A,n)=>A.xn.x?1:A.yn.y?1:0),F8(t)}function F8(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(a.y-l.y)>=(s.y-l.y)*(a.x-l.x))t.pop();else break}t.push(a)}t.pop();const A=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;A.length>=2;){const s=A[A.length-1],l=A[A.length-2];if((s.x-l.x)*(a.y-l.y)>=(s.y-l.y)*(a.x-l.x))A.pop();else break}A.push(a)}return A.pop(),t.length===1&&A.length===1&&t[0].x===A[0].x&&t[0].y===A[0].y?t:t.concat(A)}var S8=d3,L8=g3,v3=m3;const T8=S8,N8=$.forwardRef(({className:e,sideOffset:t=4,...A},n)=>Z.jsx(L8,{children:Z.jsx(v3,{ref:n,sideOffset:t,className:Sr("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...A})}));N8.displayName=v3.displayName;const Yc=$.forwardRef(({className:e,...t},A)=>Z.jsx("div",{ref:A,className:Sr("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Yc.displayName="Card";const _8=$.forwardRef(({className:e,...t},A)=>Z.jsx("div",{ref:A,className:Sr("flex flex-col space-y-1.5 p-6",e),...t}));_8.displayName="CardHeader";const H8=$.forwardRef(({className:e,...t},A)=>Z.jsx("div",{ref:A,className:Sr("font-semibold leading-none tracking-tight",e),...t}));H8.displayName="CardTitle";const D8=$.forwardRef(({className:e,...t},A)=>Z.jsx("div",{ref:A,className:Sr("text-sm text-muted-foreground",e),...t}));D8.displayName="CardDescription";const Wc=$.forwardRef(({className:e,...t},A)=>Z.jsx("div",{ref:A,className:Sr("p-6 pt-0",e),...t}));Wc.displayName="CardContent";const I8=$.forwardRef(({className:e,...t},A)=>Z.jsx("div",{ref:A,className:Sr("flex items-center p-6 pt-0",e),...t}));I8.displayName="CardFooter";function O8(){return Z.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:Z.jsx(Yc,{className:"w-full max-w-md mx-4",children:Z.jsxs(Wc,{className:"pt-6",children:[Z.jsxs("div",{className:"flex mb-4 gap-2",children:[Z.jsx(u6,{className:"h-8 w-8 text-red-500"}),Z.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),Z.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}var M8=Symbol.for("react.lazy"),Kp=C4[" use ".trim().toString()];function R8(e){return typeof e=="object"&&e!==null&&"then"in e}function y3(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===M8&&"_payload"in e&&R8(e._payload)}function k8(e){const t=K8(e),A=$.forwardRef((n,a)=>{let{children:s,...l}=n;y3(s)&&typeof Kp=="function"&&(s=Kp(s._payload));const u=$.Children.toArray(s),c=u.find(V8);if(c){const h=c.props.children,d=u.map(B=>B===c?$.Children.count(h)>1?$.Children.only(null):$.isValidElement(h)?h.props.children:null:B);return Z.jsx(t,{...l,ref:a,children:$.isValidElement(h)?$.cloneElement(h,void 0,d):null})}return Z.jsx(t,{...l,ref:a,children:s})});return A.displayName=`${e}.Slot`,A}var P8=k8("Slot");function K8(e){const t=$.forwardRef((A,n)=>{let{children:a,...s}=A;if(y3(a)&&typeof Kp=="function"&&(a=Kp(a._payload)),$.isValidElement(a)){const l=z8(a),u=G8(s,a.props);return a.type!==$.Fragment&&(u.ref=n?hg(n,l):l),$.cloneElement(a,u)}return $.Children.count(a)>1?$.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var j8=Symbol("radix.slottable");function V8(e){return $.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===j8}function G8(e,t){const A={...t};for(const n in t){const a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?A[n]=(...u)=>{const c=s(...u);return a(...u),c}:a&&(A[n]=a):n==="style"?A[n]={...a,...s}:n==="className"&&(A[n]=[a,s].filter(Boolean).join(" "))}return{...e,...A}}function z8(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning;return A?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,A=t&&"isReactWarning"in t&&t.isReactWarning,A?e.props.ref:e.props.ref||e.ref)}const q8=mx("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground shadow-sm border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),xs=$.forwardRef(({className:e,variant:t,size:A,asChild:n=!1,...a},s)=>{const l=n?P8:"button";return Z.jsx(l,{className:Sr(q8({variant:t,size:A,className:e})),ref:s,...a})});xs.displayName="Button";/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License *//*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var S1=function(e,t){return S1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,n){A.__proto__=n}||function(A,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(A[a]=n[a])},S1(e,t)};function Xa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");S1(e,t);function A(){this.constructor=e}e.prototype=t===null?Object.create(t):(A.prototype=t.prototype,new A)}var L1=function(){return L1=Object.assign||function(t){for(var A,n=1,a=arguments.length;n0&&s[s.length-1])&&(h[0]===6||h[0]===2)){A=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]=55296&&a<=56319&&A>10)+55296,l%1024+56320)),(a+1===A||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},Zy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y8=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var kd=0;kd"u"?[]:new Uint8Array(256);for(var Pd=0;Pd<$y.length;Pd++)Xf[$y.charCodeAt(Pd)]=Pd;var W8=function(e){var t=e.length*.75,A=e.length,n,a=0,s,l,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),d=Array.isArray(h)?h:new Uint8Array(h);for(n=0;n>4,d[a++]=(l&15)<<4|u>>2,d[a++]=(u&3)<<6|c&63;return h},J8=function(e){for(var t=e.length,A=[],n=0;n>cu,e_=1<>cu,A_=b3+t_,n_=A_,r_=32,i_=n_+r_,a_=65536>>W2,s_=1<<$8,o_=s_-1,e5=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},l_=function(e,t,A){return e.slice?e.slice(t,A):new Uint32Array(Array.prototype.slice.call(e,t,A))},u_=function(e,t){var A=W8(e),n=Array.isArray(A)?Z8(A):new Uint32Array(A),a=Array.isArray(A)?J8(A):new Uint16Array(A),s=24,l=e5(a,s/2,n[4]/2),u=n[5]===2?e5(a,(s+n[4])/2):l_(n,Math.ceil((s+n[4])/4));return new c_(n[0],n[1],n[2],n[3],l,u)},c_=(function(){function e(t,A,n,a,s,l){this.initialValue=t,this.errorValue=A,this.highStart=n,this.highValueIndex=a,this.index=s,this.data=l}return e.prototype.get=function(t){var A;if(t>=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>cu],A=(A<>cu)],A=(A<>W2),A=this.index[A],A+=t>>cu&o_,A=this.index[A],A=(A<"u"?[]:new Uint8Array(256);for(var Kd=0;KdA5?(a.push(!0),u-=A5):a.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return n.push(l),A.push(_1);if(u===p_||u===T1){if(l===0)return n.push(l),A.push(au);var c=A[l-1];return C_.indexOf(c)===-1?(n.push(n[l-1]),A.push(c)):(n.push(l),A.push(au))}if(n.push(l),u===v_)return A.push(t==="strict"?H1:wh);if(u===E3||u===w_)return A.push(au);if(u===y_)return s>=131072&&s<=196605||s>=196608&&s<=262141?A.push(wh):A.push(au);A.push(u)}),[n,A,a]},pm=function(e,t,A,n){var a=n[A];if(Array.isArray(e)?e.indexOf(a)!==-1:e===a)for(var s=A;s<=n.length;){s++;var l=n[s];if(l===t)return!0;if(l!==ll)break}if(a===ll)for(var s=A;s>0;){s--;var u=n[s];if(Array.isArray(e)?e.indexOf(u)!==-1:e===u)for(var c=A;c<=n.length;){c++;var l=n[c];if(l===t)return!0;if(l!==ll)break}if(u!==ll)break}return!1},l5=function(e,t){for(var A=e;A>=0;){var n=t[A];if(n===ll)A--;else return n}return 0},E_=function(e,t,A,n,a){if(A[n]===0)return nA;var s=n-1;if(Array.isArray(a)&&a[s]===!0)return nA;var l=s-1,u=s+1,c=t[s],h=l>=0?t[l]:0,d=t[u];if(c===C3&&d===x3)return nA;if(k1.indexOf(c)!==-1)return Q3;if(k1.indexOf(d)!==-1||F3.indexOf(d)!==-1)return nA;if(l5(s,t)===U3)return zd;if(R1.get(e[s])===T1||(c===Vd||c===Gd)&&R1.get(e[u])===T1||c===n5||d===n5||c===r5||[ll,N1,Yf].indexOf(c)===-1&&d===r5||[jd,Pf,B_,hc,dc].indexOf(d)!==-1||l5(s,t)===Kf||pm(hm,Kf,s,t)||pm([jd,Pf],H1,s,t)||pm(i5,i5,s,t))return nA;if(c===ll)return zd;if(c===hm||d===hm)return nA;if(d===_1||c===_1)return zd;if([N1,Yf,H1].indexOf(d)!==-1||c===m_||h===O1&&x_.indexOf(c)!==-1||c===dc&&d===O1||d===a5||lo.indexOf(d)!==-1&&c===Ni||lo.indexOf(c)!==-1&&d===Ni||c===Jf&&[wh,Vd,Gd].indexOf(d)!==-1||[wh,Vd,Gd].indexOf(c)!==-1&&d===Wf||lo.indexOf(c)!==-1&&s5.indexOf(d)!==-1||s5.indexOf(c)!==-1&&lo.indexOf(d)!==-1||[Jf,Wf].indexOf(c)!==-1&&(d===Ni||[Kf,Yf].indexOf(d)!==-1&&t[u+1]===Ni)||[Kf,Yf].indexOf(c)!==-1&&d===Ni||c===Ni&&[Ni,dc,hc].indexOf(d)!==-1)return nA;if([Ni,dc,hc,jd,Pf].indexOf(d)!==-1)for(var B=s;B>=0;){var y=t[B];if(y===Ni)return nA;if([dc,hc].indexOf(y)!==-1)B--;else break}if([Jf,Wf].indexOf(d)!==-1)for(var B=[jd,Pf].indexOf(c)!==-1?l:s;B>=0;){var y=t[B];if(y===Ni)return nA;if([dc,hc].indexOf(y)!==-1)B--;else break}if(M1===c&&[M1,bp,D1,I1].indexOf(d)!==-1||[bp,D1].indexOf(c)!==-1&&[bp,Cp].indexOf(d)!==-1||[Cp,I1].indexOf(c)!==-1&&d===Cp||o5.indexOf(c)!==-1&&[a5,Wf].indexOf(d)!==-1||o5.indexOf(d)!==-1&&c===Jf||lo.indexOf(c)!==-1&&lo.indexOf(d)!==-1||c===hc&&lo.indexOf(d)!==-1||lo.concat(Ni).indexOf(c)!==-1&&d===Kf&&b_.indexOf(e[u])===-1||lo.concat(Ni).indexOf(d)!==-1&&c===Pf)return nA;if(c===dm&&d===dm){for(var w=A[s],U=1;w>0&&(w--,t[w]===dm);)U++;if(U%2!==0)return nA}return c===Vd&&d===Gd?nA:zd},Q_=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=U_(e,t.lineBreak),n=A[0],a=A[1],s=A[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(a=a.map(function(u){return[Ni,au,E3].indexOf(u)!==-1?wh:u}));var l=t.wordBreak==="keep-all"?s.map(function(u,c){return u&&e[c]>=19968&&e[c]<=40959}):void 0;return[n,a,l]},F_=(function(){function e(t,A,n,a){this.codePoints=t,this.required=A===Q3,this.start=n,this.end=a}return e.prototype.slice=function(){return En.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),S_=function(e,t){var A=Cg(e),n=Q_(A,t),a=n[0],s=n[1],l=n[2],u=A.length,c=0,h=0;return{next:function(){if(h>=u)return{done:!0,value:null};for(var d=nA;h=S3&&e<=57},lH=function(e){return e>=55296&&e<=57343},pc=function(e){return Qr(e)||e>=N3&&e<=H3||e>=L3&&e<=rH},uH=function(e){return e>=L3&&e<=aH},cH=function(e){return e>=N3&&e<=oH},fH=function(e){return uH(e)||cH(e)},hH=function(e){return e>=X_},Jd=function(e){return e===jp||e===N_||e===__},Vp=function(e){return fH(e)||hH(e)||e===O_},d5=function(e){return Vp(e)||Qr(e)||e===li},dH=function(e){return e>=Z_&&e<=$_||e===eH||e>=tH&&e<=AH||e===nH},ol=function(e,t){return e!==nh?!1:t!==jp},Zd=function(e,t,A){return e===li?Vp(t)||ol(t,A):Vp(e)?!0:!!(e===nh&&ol(e,t))},mm=function(e,t,A){return e===ou||e===li?Qr(t)?!0:t===vh&&Qr(A):Qr(e===vh?t:e)},pH=function(e){var t=0,A=1;(e[t]===ou||e[t]===li)&&(e[t]===li&&(A=-1),t++);for(var n=[];Qr(e[t]);)n.push(e[t++]);var a=n.length?parseInt(En.apply(void 0,n),10):0;e[t]===vh&&t++;for(var s=[];Qr(e[t]);)s.push(e[t++]);var l=s.length,u=l?parseInt(En.apply(void 0,s),10):0;(e[t]===_3||e[t]===T3)&&t++;var c=1;(e[t]===ou||e[t]===li)&&(e[t]===li&&(c=-1),t++);for(var h=[];Qr(e[t]);)h.push(e[t++]);var d=h.length?parseInt(En.apply(void 0,h),10):0;return A*(a+u*Math.pow(10,-l))*Math.pow(10,c*d)},gH={type:2},mH={type:3},BH={type:4},wH={type:13},vH={type:8},yH={type:21},bH={type:9},CH={type:10},xH={type:11},UH={type:12},EH={type:14},$d={type:23},QH={type:1},FH={type:25},SH={type:24},LH={type:26},TH={type:27},NH={type:28},_H={type:29},HH={type:31},P1={type:32},D3=(function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(Cg(t))},e.prototype.read=function(){for(var t=[],A=this.consumeToken();A!==P1;)t.push(A),A=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case qd:return this.consumeStringToken(qd);case H_:var A=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(d5(A)||ol(n,a)){var s=Zd(A,n,a)?T_:L_,l=this.consumeName();return{type:5,value:l,flags:s}}break;case D_:if(this.peekCodePoint(0)===jf)return this.consumeCodePoint(),wH;break;case Xd:return this.consumeStringToken(Xd);case Yd:return gH;case Vf:return mH;case gm:if(this.peekCodePoint(0)===jf)return this.consumeCodePoint(),EH;break;case ou:if(mm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Y_:return BH;case li:var u=t,c=this.peekCodePoint(0),h=this.peekCodePoint(1);if(mm(u,c,h))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Zd(u,c,h))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(c===li&&h===k_)return this.consumeCodePoint(),this.consumeCodePoint(),SH;break;case vh:if(mm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case c5:if(this.peekCodePoint(0)===gm)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===gm&&(d=this.consumeCodePoint(),d===c5))return this.consumeToken();if(d===ms)return this.consumeToken()}break;case W_:return LH;case J_:return TH;case R_:if(this.peekCodePoint(0)===M_&&this.peekCodePoint(1)===li&&this.peekCodePoint(2)===li)return this.consumeCodePoint(),this.consumeCodePoint(),FH;break;case P_:var B=this.peekCodePoint(0),y=this.peekCodePoint(1),w=this.peekCodePoint(2);if(Zd(B,y,w)){var l=this.consumeName();return{type:7,value:l}}break;case K_:return NH;case nh:if(ol(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case j_:return _H;case V_:if(this.peekCodePoint(0)===jf)return this.consumeCodePoint(),vH;break;case G_:return xH;case z_:return UH;case iH:case sH:var U=this.peekCodePoint(0),x=this.peekCodePoint(1);return U===ou&&(pc(x)||x===Wd)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case f5:if(this.peekCodePoint(0)===jf)return this.consumeCodePoint(),bH;if(this.peekCodePoint(0)===f5)return this.consumeCodePoint(),yH;break;case q_:if(this.peekCodePoint(0)===jf)return this.consumeCodePoint(),CH;break;case ms:return P1}return Jd(t)?(this.consumeWhiteSpace(),HH):Qr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Vp(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:En(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],A=this.consumeCodePoint();pc(A)&&t.length<6;)t.push(A),A=this.consumeCodePoint();for(var n=!1;A===Wd&&t.length<6;)t.push(A),A=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(En.apply(void 0,t.map(function(c){return c===Wd?S3:c})),16),s=parseInt(En.apply(void 0,t.map(function(c){return c===Wd?H3:c})),16);return{type:30,start:a,end:s}}var l=parseInt(En.apply(void 0,t),16);if(this.peekCodePoint(0)===li&&pc(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var u=[];pc(A)&&u.length<6;)u.push(A),A=this.consumeCodePoint();var s=parseInt(En.apply(void 0,u),16);return{type:30,start:l,end:s}}else return{type:30,start:l,end:l}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Yd?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Yd?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ms)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===Xd||A===qd){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ms||this.peekCodePoint(0)===Vf)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),$d)}for(;;){var a=this.consumeCodePoint();if(a===ms||a===Vf)return{type:22,value:En.apply(void 0,t)};if(Jd(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ms||this.peekCodePoint(0)===Vf?(this.consumeCodePoint(),{type:22,value:En.apply(void 0,t)}):(this.consumeBadUrlRemnants(),$d);if(a===qd||a===Xd||a===Yd||dH(a))return this.consumeBadUrlRemnants(),$d;if(a===nh)if(ol(a,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),$d;else t.push(a)}},e.prototype.consumeWhiteSpace=function(){for(;Jd(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Vf||t===ms)return;ol(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var A=5e4,n="";t>0;){var a=Math.min(A,t);n+=En.apply(void 0,this._value.splice(0,a)),t-=a}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var A="",n=0;do{var a=this._value[n];if(a===ms||a===void 0||a===t)return A+=this.consumeStringSlice(n),{type:0,value:A};if(a===jp)return this._value.splice(0,n),QH;if(a===nh){var s=this._value[n+1];s!==ms&&s!==void 0&&(s===jp?(A+=this.consumeStringSlice(n),n=-1,this._value.shift()):ol(a,s)&&(A+=this.consumeStringSlice(n),A+=En(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],A=_h,n=this.peekCodePoint(0);for((n===ou||n===li)&&t.push(this.consumeCodePoint());Qr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===vh&&Qr(a))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=u5;Qr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var s=this.peekCodePoint(2);if((n===_3||n===T3)&&((a===ou||a===li)&&Qr(s)||Qr(a)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=u5;Qr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[pH(t),A]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),A=t[0],n=t[1],a=this.peekCodePoint(0),s=this.peekCodePoint(1),l=this.peekCodePoint(2);if(Zd(a,s,l)){var u=this.consumeName();return{type:15,number:A,flags:n,unit:u}}return a===I_?(this.consumeCodePoint(),{type:16,number:A,flags:n}):{type:17,number:A,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(pc(t)){for(var A=En(t);pc(this.peekCodePoint(0))&&A.length<6;)A+=En(this.consumeCodePoint());Jd(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(A,16);return n===0||lH(n)||n>1114111?h5:n}return t===ms?h5:t},e.prototype.consumeName=function(){for(var t="";;){var A=this.consumeCodePoint();if(d5(A))t+=En(A);else if(ol(A,this.peekCodePoint(0)))t+=En(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),t}},e})(),I3=(function(){function e(t){this._tokens=t}return e.create=function(t){var A=new D3;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var A=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var A=this.consumeComponentValue();if(A.type===32)return t;t.push(A),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var A={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||IH(n,t))return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var A={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return A;this.reconsumeToken(n),A.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?P1:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e})(),Hh=function(e){return e.type===15},Jc=function(e){return e.type===17},_A=function(e){return e.type===20},DH=function(e){return e.type===0},K1=function(e,t){return _A(e)&&e.value===t},O3=function(e){return e.type!==31},Kc=function(e){return e.type!==31&&e.type!==4},Ts=function(e){var t=[],A=[];return e.forEach(function(n){if(n.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(A),A=[];return}n.type!==31&&A.push(n)}),A.length&&t.push(A),t},IH=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},ml=function(e){return e.type===17||e.type===15},On=function(e){return e.type===16||ml(e)},M3=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},mr={type:17,number:0,flags:_h},J2={type:16,number:50,flags:_h},ul={type:16,number:100,flags:_h},Zf=function(e,t,A){var n=e[0],a=e[1];return[RA(n,t),RA(typeof a<"u"?a:n,A)]},RA=function(e,t){if(e.type===16)return e.number/100*t;if(Hh(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},R3="deg",k3="grad",P3="rad",K3="turn",xg={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case R3:return Math.PI*t.number/180;case k3:return Math.PI/200*t.number;case P3:return t.number;case K3:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},j3=function(e){return e.type===15&&(e.unit===R3||e.unit===k3||e.unit===P3||e.unit===K3)},V3=function(e){var t=e.filter(_A).map(function(A){return A.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[mr,mr];case"to top":case"bottom":return aa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[mr,ul];case"to right":case"left":return aa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ul,ul];case"to bottom":case"top":return aa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ul,mr];case"to left":case"right":return aa(270)}return 0},aa=function(e){return Math.PI*e/180},hl={name:"color",parse:function(e,t){if(t.type===18){var A=OH[t.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),a=t.value.substring(1,2),s=t.value.substring(2,3);return cl(parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),a=t.value.substring(1,2),s=t.value.substring(2,3),l=t.value.substring(3,4);return cl(parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16),parseInt(l+l,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),a=t.value.substring(2,4),s=t.value.substring(4,6);return cl(parseInt(n,16),parseInt(a,16),parseInt(s,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),a=t.value.substring(2,4),s=t.value.substring(4,6),l=t.value.substring(6,8);return cl(parseInt(n,16),parseInt(a,16),parseInt(s,16),parseInt(l,16)/255)}}if(t.type===20){var u=po[t.value.toUpperCase()];if(typeof u<"u")return u}return po.TRANSPARENT}},dl=function(e){return(255&e)===0},rr=function(e){var t=255&e,A=255&e>>8,n=255&e>>16,a=255&e>>24;return t<255?"rgba("+a+","+n+","+A+","+t/255+")":"rgb("+a+","+n+","+A+")"},cl=function(e,t,A,n){return(e<<24|t<<16|A<<8|Math.round(n*255)<<0)>>>0},p5=function(e,t){if(e.type===17)return e.number;if(e.type===16){var A=t===3?1:255;return t===3?e.number/100*A:Math.round(e.number/100*A)}return 0},g5=function(e,t){var A=t.filter(Kc);if(A.length===3){var n=A.map(p5),a=n[0],s=n[1],l=n[2];return cl(a,s,l,1)}if(A.length===4){var u=A.map(p5),a=u[0],s=u[1],l=u[2],c=u[3];return cl(a,s,l,c)}return 0};function Bm(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<1/2?t:A<2/3?(t-e)*6*(2/3-A)+e:e}var m5=function(e,t){var A=t.filter(Kc),n=A[0],a=A[1],s=A[2],l=A[3],u=(n.type===17?aa(n.number):xg.parse(e,n))/(Math.PI*2),c=On(a)?a.number/100:0,h=On(s)?s.number/100:0,d=typeof l<"u"&&On(l)?RA(l,1):1;if(c===0)return cl(h*255,h*255,h*255,1);var B=h<=.5?h*(c+1):h+c-h*c,y=h*2-B,w=Bm(y,B,u+1/3),U=Bm(y,B,u),x=Bm(y,B,u-1/3);return cl(w*255,U*255,x*255,d)},OH={hsl:m5,hsla:m5,rgb:g5,rgba:g5},rh=function(e,t){return hl.parse(e,I3.create(t).parseComponentValue())},po={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},MH={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(_A(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},RH={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ug=function(e,t){var A=hl.parse(e,t[0]),n=t[1];return n&&On(n)?{color:A,stop:n}:{color:A,stop:null}},B5=function(e,t){var A=e[0],n=e[e.length-1];A.stop===null&&(A.stop=mr),n.stop===null&&(n.stop=ul);for(var a=[],s=0,l=0;ls?a.push(c):a.push(s),s=c}else a.push(null)}for(var h=null,l=0;ll.optimumDistance)?{optimumCorner:u,optimumDistance:d}:l},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},KH=function(e,t,A,n,a){var s=0,l=0;switch(e.size){case 0:e.shape===0?s=l=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(A),Math.abs(A-a)):e.shape===1&&(s=Math.min(Math.abs(t),Math.abs(t-n)),l=Math.min(Math.abs(A),Math.abs(A-a)));break;case 2:if(e.shape===0)s=l=Math.min(Ka(t,A),Ka(t,A-a),Ka(t-n,A),Ka(t-n,A-a));else if(e.shape===1){var u=Math.min(Math.abs(A),Math.abs(A-a))/Math.min(Math.abs(t),Math.abs(t-n)),c=w5(n,a,t,A,!0),h=c[0],d=c[1];s=Ka(h-t,(d-A)/u),l=u*s}break;case 1:e.shape===0?s=l=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(A),Math.abs(A-a)):e.shape===1&&(s=Math.max(Math.abs(t),Math.abs(t-n)),l=Math.max(Math.abs(A),Math.abs(A-a)));break;case 3:if(e.shape===0)s=l=Math.max(Ka(t,A),Ka(t,A-a),Ka(t-n,A),Ka(t-n,A-a));else if(e.shape===1){var u=Math.max(Math.abs(A),Math.abs(A-a))/Math.max(Math.abs(t),Math.abs(t-n)),B=w5(n,a,t,A,!1),h=B[0],d=B[1];s=Ka(h-t,(d-A)/u),l=u*s}break}return Array.isArray(e.size)&&(s=RA(e.size[0],n),l=e.size.length===2?RA(e.size[1],a):s),[s,l]},jH=function(e,t){var A=aa(180),n=[];return Ts(t).forEach(function(a,s){if(s===0){var l=a[0];if(l.type===20&&l.value==="to"){A=V3(a);return}else if(j3(l)){A=xg.parse(e,l);return}}var u=Ug(e,a);n.push(u)}),{angle:A,stops:n,type:1}},ep=function(e,t){var A=aa(180),n=[];return Ts(t).forEach(function(a,s){if(s===0){var l=a[0];if(l.type===20&&["top","left","right","bottom"].indexOf(l.value)!==-1){A=V3(a);return}else if(j3(l)){A=(xg.parse(e,l)+aa(270))%aa(360);return}}var u=Ug(e,a);n.push(u)}),{angle:A,stops:n,type:1}},VH=function(e,t){var A=aa(180),n=[],a=1,s=0,l=3,u=[];return Ts(t).forEach(function(c,h){var d=c[0];if(h===0){if(_A(d)&&d.value==="linear"){a=1;return}else if(_A(d)&&d.value==="radial"){a=2;return}}if(d.type===18){if(d.name==="from"){var B=hl.parse(e,d.values[0]);n.push({stop:mr,color:B})}else if(d.name==="to"){var B=hl.parse(e,d.values[0]);n.push({stop:ul,color:B})}else if(d.name==="color-stop"){var y=d.values.filter(Kc);if(y.length===2){var B=hl.parse(e,y[1]),w=y[0];Jc(w)&&n.push({stop:{type:16,number:w.number*100,flags:w.flags},color:B})}}}}),a===1?{angle:(A+aa(180))%aa(360),stops:n,type:a}:{size:l,shape:s,stops:n,position:u,type:a}},G3="closest-side",z3="farthest-side",q3="closest-corner",X3="farthest-corner",Y3="circle",W3="ellipse",J3="cover",Z3="contain",GH=function(e,t){var A=0,n=3,a=[],s=[];return Ts(t).forEach(function(l,u){var c=!0;if(u===0){var h=!1;c=l.reduce(function(B,y){if(h)if(_A(y))switch(y.value){case"center":return s.push(J2),B;case"top":case"left":return s.push(mr),B;case"right":case"bottom":return s.push(ul),B}else(On(y)||ml(y))&&s.push(y);else if(_A(y))switch(y.value){case Y3:return A=0,!1;case W3:return A=1,!1;case"at":return h=!0,!1;case G3:return n=0,!1;case J3:case z3:return n=1,!1;case Z3:case q3:return n=2,!1;case X3:return n=3,!1}else if(ml(y)||On(y))return Array.isArray(n)||(n=[]),n.push(y),!1;return B},c)}if(c){var d=Ug(e,l);a.push(d)}}),{size:n,shape:A,stops:a,position:s,type:2}},tp=function(e,t){var A=0,n=3,a=[],s=[];return Ts(t).forEach(function(l,u){var c=!0;if(u===0?c=l.reduce(function(d,B){if(_A(B))switch(B.value){case"center":return s.push(J2),!1;case"top":case"left":return s.push(mr),!1;case"right":case"bottom":return s.push(ul),!1}else if(On(B)||ml(B))return s.push(B),!1;return d},c):u===1&&(c=l.reduce(function(d,B){if(_A(B))switch(B.value){case Y3:return A=0,!1;case W3:return A=1,!1;case Z3:case G3:return n=0,!1;case z3:return n=1,!1;case q3:return n=2,!1;case J3:case X3:return n=3,!1}else if(ml(B)||On(B))return Array.isArray(n)||(n=[]),n.push(B),!1;return d},c)),c){var h=Ug(e,l);a.push(h)}}),{size:n,shape:A,stops:a,position:s,type:2}},zH=function(e){return e.type===1},qH=function(e){return e.type===2},Z2={name:"image",parse:function(e,t){if(t.type===22){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(t.type===18){var n=$3[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function XH(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!$3[e.name])}var $3={"linear-gradient":jH,"-moz-linear-gradient":ep,"-ms-linear-gradient":ep,"-o-linear-gradient":ep,"-webkit-linear-gradient":ep,"radial-gradient":GH,"-moz-radial-gradient":tp,"-ms-radial-gradient":tp,"-o-radial-gradient":tp,"-webkit-radial-gradient":tp,"-webkit-gradient":VH},YH={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t.filter(function(n){return Kc(n)&&XH(n)}).map(function(n){return Z2.parse(e,n)})}},WH={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(_A(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},JH={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ts(t).map(function(A){return A.filter(On)}).map(M3)}},ZH={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ts(t).map(function(A){return A.filter(_A).map(function(n){return n.value}).join(" ")}).map($H)}},$H=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Hc;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Hc||(Hc={}));var eD={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ts(t).map(function(A){return A.filter(tD)})}},tD=function(e){return _A(e)||On(e)},Eg=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},AD=Eg("top"),nD=Eg("right"),rD=Eg("bottom"),iD=Eg("left"),Qg=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,A){return M3(A.filter(On))}}},aD=Qg("top-left"),sD=Qg("top-right"),oD=Qg("bottom-right"),lD=Qg("bottom-left"),Fg=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},uD=Fg("top"),cD=Fg("right"),fD=Fg("bottom"),hD=Fg("left"),Sg=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Hh(A)?A.number:0}}},dD=Sg("top"),pD=Sg("right"),gD=Sg("bottom"),mD=Sg("left"),BD={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wD={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},vD={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(_A).reduce(function(A,n){return A|yD(n.value)},0)}},yD=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},bD={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},CD={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},Gp;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Gp||(Gp={}));var xD={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Gp.STRICT;case"normal":default:return Gp.NORMAL}}},UD={name:"line-height",initialValue:"normal",prefix:!1,type:4},v5=function(e,t){return _A(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:On(e)?RA(e,t):t},ED={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:Z2.parse(e,t)}},QD={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},j1={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Lg=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},FD=Lg("top"),SD=Lg("right"),LD=Lg("bottom"),TD=Lg("left"),ND={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(_A).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},_D={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Tg=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},HD=Tg("top"),DD=Tg("right"),ID=Tg("bottom"),OD=Tg("left"),MD={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},RD={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},kD={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&K1(t[0],"none")?[]:Ts(t).map(function(A){for(var n={color:po.TRANSPARENT,offsetX:mr,offsetY:mr,blur:mr},a=0,s=0;s"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return A(t.values)}return null}},jD=function(e){var t=e.filter(function(A){return A.type===17}).map(function(A){return A.number});return t.length===6?t:null},VD=function(e){var t=e.filter(function(c){return c.type===17}).map(function(c){return c.number}),A=t[0],n=t[1];t[2],t[3];var a=t[4],s=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var l=t[12],u=t[13];return t[14],t[15],t.length===16?[A,n,a,s,l,u]:null},GD={matrix:jD,matrix3d:VD},y5={type:16,number:50,flags:_h},zD=[y5,y5],qD={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var A=t.filter(On);return A.length!==2?zD:[A[0],A[1]]}},XD={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ih;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(ih||(ih={}));var YD={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return ih.BREAK_ALL;case"keep-all":return ih.KEEP_ALL;case"normal":default:return ih.NORMAL}}},WD={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Jc(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},eU={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},JD={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Jc(t)?t.number:1}},ZD={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$D={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(_A).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},eI={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var A=[],n=[];return t.forEach(function(a){switch(a.type){case 20:case 0:A.push(a.value);break;case 17:A.push(a.number.toString());break;case 4:n.push(A.join(" ")),A.length=0;break}}),A.length&&n.push(A.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},tI={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},AI={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Jc(t))return t.number;if(_A(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},nI={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(_A).map(function(A){return A.value})}},rI={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Xn=function(e,t){return(e&t)!==0},iI={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t}},aI={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var A=t[0];if(A.type===20&&A.value==="none")return null;for(var n=[],a=t.filter(O3),s=0;s1?1:0],this.overflowWrap=Je(t,_D,A.overflowWrap),this.paddingTop=Je(t,HD,A.paddingTop),this.paddingRight=Je(t,DD,A.paddingRight),this.paddingBottom=Je(t,ID,A.paddingBottom),this.paddingLeft=Je(t,OD,A.paddingLeft),this.paintOrder=Je(t,cI,A.paintOrder),this.position=Je(t,RD,A.position),this.textAlign=Je(t,MD,A.textAlign),this.textDecorationColor=Je(t,ZD,(n=A.textDecorationColor)!==null&&n!==void 0?n:A.color),this.textDecorationLine=Je(t,$D,(a=A.textDecorationLine)!==null&&a!==void 0?a:A.textDecoration),this.textShadow=Je(t,kD,A.textShadow),this.textTransform=Je(t,PD,A.textTransform),this.transform=Je(t,KD,A.transform),this.transformOrigin=Je(t,qD,A.transformOrigin),this.visibility=Je(t,XD,A.visibility),this.webkitTextStrokeColor=Je(t,fI,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=Je(t,hI,A.webkitTextStrokeWidth),this.wordBreak=Je(t,YD,A.wordBreak),this.zIndex=Je(t,WD,A.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return dl(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return Xn(this.display,4)||Xn(this.display,33554432)||Xn(this.display,268435456)||Xn(this.display,536870912)||Xn(this.display,67108864)||Xn(this.display,134217728)},e})(),pI=(function(){function e(t,A){this.content=Je(t,iI,A.content),this.quotes=Je(t,lI,A.quotes)}return e})(),C5=(function(){function e(t,A){this.counterIncrement=Je(t,aI,A.counterIncrement),this.counterReset=Je(t,sI,A.counterReset)}return e})(),Je=function(e,t,A){var n=new D3,a=A!==null&&typeof A<"u"?A.toString():t.initialValue;n.write(a);var s=new I3(n.read());switch(t.type){case 2:var l=s.parseComponentValue();return t.parse(e,_A(l)?l.value:t.initialValue);case 0:return t.parse(e,s.parseComponentValue());case 1:return t.parse(e,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(t.format){case"angle":return xg.parse(e,s.parseComponentValue());case"color":return hl.parse(e,s.parseComponentValue());case"image":return Z2.parse(e,s.parseComponentValue());case"length":var u=s.parseComponentValue();return ml(u)?u:mr;case"length-percentage":var c=s.parseComponentValue();return On(c)?c:mr;case"time":return eU.parse(e,s.parseComponentValue())}break}},gI="data-html2canvas-debug",mI=function(e){var t=e.getAttribute(gI);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},V1=function(e,t){var A=mI(e);return A===1||t===A},Ns=(function(){function e(t,A){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,V1(A,3))debugger;this.styles=new dI(t,window.getComputedStyle(A,null)),q1(A)&&(this.styles.animationDuration.some(function(n){return n>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=bg(this.context,A),V1(A,4)&&(this.flags|=16)}return e})(),BI="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",x5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$f=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ap=0;Ap>4,d[a++]=(l&15)<<4|u>>2,d[a++]=(u&3)<<6|c&63;return h},vI=function(e){for(var t=e.length,A=[],n=0;n>fu,CI=1<>fu,UI=tU+xI,EI=UI,QI=32,FI=EI+QI,SI=65536>>$2,LI=1<=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>fu],A=(A<>fu)],A=(A<>$2),A=this.index[A],A+=t>>fu&TI,A=this.index[A],A=(A<"u"?[]:new Uint8Array(256);for(var np=0;np=55296&&a<=56319&&A>10)+55296,l%1024+56320)),(a+1===A||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},kI=_I(BI),ra="×",Em="÷",PI=function(e){return kI.get(e)},KI=function(e,t,A){var n=A-2,a=t[n],s=t[A-1],l=t[A];if(s===ym&&l===bm)return ra;if(s===ym||s===bm||s===Q5||l===ym||l===bm||l===Q5)return Em;if(s===S5&&[S5,Cm,L5,T5].indexOf(l)!==-1||(s===L5||s===Cm)&&(l===Cm||l===xm)||(s===T5||s===xm)&&l===xm||l===N5||l===F5||l===OI||s===II)return ra;if(s===N5&&l===_5){for(;a===F5;)a=t[--n];if(a===_5)return ra}if(s===Um&&l===Um){for(var u=0;a===Um;)u++,a=t[--n];if(u%2===0)return ra}return Em},jI=function(e){var t=MI(e),A=t.length,n=0,a=0,s=t.map(PI);return{next:function(){if(n>=A)return{done:!0,value:null};for(var l=ra;nl.x||d.y>l.y;return l=d,h===0?!0:B});return e.body.removeChild(t),u},qI=function(){return typeof new Image().crossOrigin<"u"},XI=function(){return typeof new XMLHttpRequest().responseType=="string"},YI=function(e){var t=new Image,A=e.createElement("canvas"),n=A.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),A.toDataURL()}catch{return!1}return!0},H5=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},WI=function(e){var t=e.createElement("canvas"),A=100;t.width=A,t.height=A;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,A,A);var a=new Image,s=t.toDataURL();a.src=s;var l=G1(A,A,0,0,a);return n.fillStyle="red",n.fillRect(0,0,A,A),D5(l).then(function(u){n.drawImage(u,0,0);var c=n.getImageData(0,0,A,A).data;n.fillStyle="red",n.fillRect(0,0,A,A);var h=e.createElement("div");return h.style.backgroundImage="url("+s+")",h.style.height=A+"px",H5(c)?D5(G1(A,A,0,0,h)):Promise.reject(!1)}).then(function(u){return n.drawImage(u,0,0),H5(n.getImageData(0,0,A,A).data)}).catch(function(){return!1})},G1=function(e,t,A,n,a){var s="http://www.w3.org/2000/svg",l=document.createElementNS(s,"svg"),u=document.createElementNS(s,"foreignObject");return l.setAttributeNS(null,"width",e.toString()),l.setAttributeNS(null,"height",t.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",A.toString()),u.setAttributeNS(null,"y",n.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),l.appendChild(u),u.appendChild(a),l},D5=function(e){return new Promise(function(t,A){var n=new Image;n.onload=function(){return t(n)},n.onerror=A,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},gr={get SUPPORT_RANGE_BOUNDS(){var e=GI(document);return Object.defineProperty(gr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=gr.SUPPORT_RANGE_BOUNDS&&zI(document);return Object.defineProperty(gr,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=YI(document);return Object.defineProperty(gr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?WI(document):Promise.resolve(!1);return Object.defineProperty(gr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=qI();return Object.defineProperty(gr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=XI();return Object.defineProperty(gr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(gr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(gr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},ah=(function(){function e(t,A){this.text=t,this.bounds=A}return e})(),JI=function(e,t,A,n){var a=eO(t,A),s=[],l=0;return a.forEach(function(u){if(A.textDecorationLine.length||u.trim().length>0)if(gr.SUPPORT_RANGE_BOUNDS){var c=I5(n,l,u.length).getClientRects();if(c.length>1){var h=eB(u),d=0;h.forEach(function(y){s.push(new ah(y,Bo.fromDOMRectList(e,I5(n,d+l,y.length).getClientRects()))),d+=y.length})}else s.push(new ah(u,Bo.fromDOMRectList(e,c)))}else{var B=n.splitText(u.length);s.push(new ah(u,ZI(e,n))),n=B}else gr.SUPPORT_RANGE_BOUNDS||(n=n.splitText(u.length));l+=u.length}),s},ZI=function(e,t){var A=t.ownerDocument;if(A){var n=A.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var s=bg(e,n);return n.firstChild&&a.replaceChild(n.firstChild,n),s}}return Bo.EMPTY},I5=function(e,t,A){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(e,t),a.setEnd(e,t+A),a},eB=function(e){if(gr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(A){return A.segment})}return VI(e)},$I=function(e,t){if(gr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map(function(n){return n.segment})}return AO(e,t)},eO=function(e,t){return t.letterSpacing!==0?eB(e):$I(e,t)},tO=[32,160,4961,65792,65793,4153,4241],AO=function(e,t){for(var A=S_(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],a,s=function(){if(a.value){var l=a.value.slice(),u=Cg(l),c="";u.forEach(function(h){tO.indexOf(h)===-1?c+=En(h):(c.length&&n.push(c),n.push(En(h)),c="")}),c.length&&n.push(c)}};!(a=A.next()).done;)s();return n},nO=(function(){function e(t,A,n){this.text=rO(A.data,n.textTransform),this.textBounds=JI(t,this.text,n,A)}return e})(),rO=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(iO,aO);case 2:return e.toUpperCase();default:return e}},iO=/(^|\s|:|-|\(|\))([a-z])/g,aO=function(e,t,A){return e.length>0?t+A.toUpperCase():e},AU=(function(e){Xa(t,e);function t(A,n){var a=e.call(this,A,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return t})(Ns),nU=(function(e){Xa(t,e);function t(A,n){var a=e.call(this,A,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return t})(Ns),rU=(function(e){Xa(t,e);function t(A,n){var a=e.call(this,A,n)||this,s=new XMLSerializer,l=bg(A,n);return n.setAttribute("width",l.width+"px"),n.setAttribute("height",l.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(s.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t})(Ns),iU=(function(e){Xa(t,e);function t(A,n){var a=e.call(this,A,n)||this;return a.value=n.value,a}return t})(Ns),z1=(function(e){Xa(t,e);function t(A,n){var a=e.call(this,A,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return t})(Ns),sO=[{type:15,flags:0,unit:"px",number:3}],oO=[{type:16,flags:0,number:50}],lO=function(e){return e.width>e.height?new Bo(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)A.textNodes.push(new nO(e,a,A.styles));else if(Ec(a))if(pU(a)&&a.assignedNodes)a.assignedNodes().forEach(function(u){return xp(e,u,A,n)});else{var l=lU(e,a);l.styles.isVisible()&&(hO(a,l,n)?l.flags|=4:dO(l.styles)&&(l.flags|=2),fO.indexOf(a.tagName)!==-1&&(l.flags|=8),A.elements.push(l),a.slot,a.shadowRoot?xp(e,a.shadowRoot,l,n):!Xp(a)&&!fU(a)&&!Yp(a)&&xp(e,a,l,n))}},lU=function(e,t){return X1(t)?new AU(e,t):hU(t)?new nU(e,t):fU(t)?new rU(e,t):pO(t)?new iU(e,t):gO(t)?new z1(e,t):mO(t)?new tB(e,t):Yp(t)?new aU(e,t):Xp(t)?new sU(e,t):dU(t)?new oU(e,t):new Ns(e,t)},uU=function(e,t){var A=lU(e,t);return A.flags|=4,xp(e,t,A,A),A},hO=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||AB(e)&&A.styles.isTransparent()},dO=function(e){return e.isPositioned()||e.isFloating()},cU=function(e){return e.nodeType===Node.TEXT_NODE},Ec=function(e){return e.nodeType===Node.ELEMENT_NODE},q1=function(e){return Ec(e)&&typeof e.style<"u"&&!Up(e)},Up=function(e){return typeof e.className=="object"},pO=function(e){return e.tagName==="LI"},gO=function(e){return e.tagName==="OL"},mO=function(e){return e.tagName==="INPUT"},BO=function(e){return e.tagName==="HTML"},fU=function(e){return e.tagName==="svg"},AB=function(e){return e.tagName==="BODY"},hU=function(e){return e.tagName==="CANVAS"},M5=function(e){return e.tagName==="VIDEO"},X1=function(e){return e.tagName==="IMG"},dU=function(e){return e.tagName==="IFRAME"},R5=function(e){return e.tagName==="STYLE"},wO=function(e){return e.tagName==="SCRIPT"},Xp=function(e){return e.tagName==="TEXTAREA"},Yp=function(e){return e.tagName==="SELECT"},pU=function(e){return e.tagName==="SLOT"},k5=function(e){return e.tagName.indexOf("-")>0},vO=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var A=this.counters[t];return A&&A.length?A[A.length-1]:1},e.prototype.getCounterValues=function(t){var A=this.counters[t];return A||[]},e.prototype.pop=function(t){var A=this;t.forEach(function(n){return A.counters[n].pop()})},e.prototype.parse=function(t){var A=this,n=t.counterIncrement,a=t.counterReset,s=!0;n!==null&&n.forEach(function(u){var c=A.counters[u.counter];c&&u.increment!==0&&(s=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=u.increment)});var l=[];return s&&a.forEach(function(u){var c=A.counters[u.counter];l.push(u.counter),c||(c=A.counters[u.counter]=[]),c.push(u.reset)}),l},e})(),P5={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},K5={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},yO={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},bO={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},gc=function(e,t,A,n,a,s){return eA?yh(e,a,s.length>0):n.integers.reduce(function(l,u,c){for(;e>=u;)e-=u,l+=n.values[c];return l},"")+s},gU=function(e,t,A,n){var a="";do A||e--,a=n(e)+a,e/=t;while(e*t>=t);return a},xn=function(e,t,A,n,a){var s=A-t+1;return(e<0?"-":"")+(gU(Math.abs(e),s,n,function(l){return En(Math.floor(l%s)+t)})+a)},Au=function(e,t,A){A===void 0&&(A=". ");var n=t.length;return gU(Math.abs(e),n,!1,function(a){return t[Math.floor(a%n)]})+A},bc=1,il=2,al=4,eh=8,uo=function(e,t,A,n,a,s){if(e<-9999||e>9999)return yh(e,4,a.length>0);var l=Math.abs(e),u=a;if(l===0)return t[0]+u;for(var c=0;l>0&&c<=4;c++){var h=l%10;h===0&&Xn(s,bc)&&u!==""?u=t[h]+u:h>1||h===1&&c===0||h===1&&c===1&&Xn(s,il)||h===1&&c===1&&Xn(s,al)&&e>100||h===1&&c>1&&Xn(s,eh)?u=t[h]+(c>0?A[c-1]:"")+u:h===1&&c>0&&(u=A[c-1]+u),l=Math.floor(l/10)}return(e<0?n:"")+u},j5="十百千萬",V5="拾佰仟萬",G5="マイナス",Qm="마이너스",yh=function(e,t,A){var n=A?". ":"",a=A?"、":"",s=A?", ":"",l=A?" ":"";switch(t){case 0:return"•"+l;case 1:return"◦"+l;case 2:return"◾"+l;case 5:var u=xn(e,48,57,!0,n);return u.length<4?"0"+u:u;case 4:return Au(e,"〇一二三四五六七八九",a);case 6:return gc(e,1,3999,P5,3,n).toLowerCase();case 7:return gc(e,1,3999,P5,3,n);case 8:return xn(e,945,969,!1,n);case 9:return xn(e,97,122,!1,n);case 10:return xn(e,65,90,!1,n);case 11:return xn(e,1632,1641,!0,n);case 12:case 49:return gc(e,1,9999,K5,3,n);case 35:return gc(e,1,9999,K5,3,n).toLowerCase();case 13:return xn(e,2534,2543,!0,n);case 14:case 30:return xn(e,6112,6121,!0,n);case 15:return Au(e,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return Au(e,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return uo(e,"零一二三四五六七八九",j5,"負",a,il|al|eh);case 47:return uo(e,"零壹貳參肆伍陸柒捌玖",V5,"負",a,bc|il|al|eh);case 42:return uo(e,"零一二三四五六七八九",j5,"负",a,il|al|eh);case 41:return uo(e,"零壹贰叁肆伍陆柒捌玖",V5,"负",a,bc|il|al|eh);case 26:return uo(e,"〇一二三四五六七八九","十百千万",G5,a,0);case 25:return uo(e,"零壱弐参四伍六七八九","拾百千万",G5,a,bc|il|al);case 31:return uo(e,"영일이삼사오육칠팔구","십백천만",Qm,s,bc|il|al);case 33:return uo(e,"零一二三四五六七八九","十百千萬",Qm,s,0);case 32:return uo(e,"零壹貳參四五六七八九","拾百千",Qm,s,bc|il|al);case 18:return xn(e,2406,2415,!0,n);case 20:return gc(e,1,19999,bO,3,n);case 21:return xn(e,2790,2799,!0,n);case 22:return xn(e,2662,2671,!0,n);case 22:return gc(e,1,10999,yO,3,n);case 23:return Au(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Au(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return xn(e,3302,3311,!0,n);case 28:return Au(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return Au(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return xn(e,3792,3801,!0,n);case 37:return xn(e,6160,6169,!0,n);case 38:return xn(e,4160,4169,!0,n);case 39:return xn(e,2918,2927,!0,n);case 40:return xn(e,1776,1785,!0,n);case 43:return xn(e,3046,3055,!0,n);case 44:return xn(e,3174,3183,!0,n);case 45:return xn(e,3664,3673,!0,n);case 46:return xn(e,3872,3881,!0,n);case 3:default:return xn(e,48,57,!0,n)}},mU="data-html2canvas-ignore",z5=(function(){function e(t,A,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=A,this.counters=new vO,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,A){var n=this,a=CO(t,A);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var s=t.defaultView.pageXOffset,l=t.defaultView.pageYOffset,u=a.contentWindow,c=u.document,h=EO(a).then(function(){return Pr(n,void 0,void 0,function(){var d,B;return Er(this,function(y){switch(y.label){case 0:return this.scrolledElements.forEach(LO),u&&(u.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.scrollY!==A.top||u.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-A.left,u.scrollY-A.top,0,0))),d=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:y.sent(),y.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,UO(c)]:[3,4];case 3:y.sent(),y.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(c,B)}).then(function(){return a})]:[2,a]}})})});return c.open(),c.write(FO(document.doctype)+""),SO(this.referenceElement.ownerDocument,s,l),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),h},e.prototype.createElementClone=function(t){if(V1(t,2))debugger;if(hU(t))return this.createCanvasClone(t);if(M5(t))return this.createVideoClone(t);if(R5(t))return this.createStyleClone(t);var A=t.cloneNode(!1);return X1(A)&&(X1(t)&&t.currentSrc&&t.currentSrc!==t.src&&(A.src=t.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),k5(A)?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(t){var A=document.createElement("html2canvascustomelement");return Fm(t.style,A),A},e.prototype.createStyleClone=function(t){try{var A=t.sheet;if(A&&A.cssRules){var n=[].slice.call(A.cssRules,0).reduce(function(s,l){return l&&typeof l.cssText=="string"?s+l.cssText:s},""),a=t.cloneNode(!1);return a.textContent=n,a}}catch(s){if(this.context.logger.error("Unable to access cssRules property",s),s.name!=="SecurityError")throw s}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var A;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var a=t.cloneNode(!1);try{a.width=t.width,a.height=t.height;var s=t.getContext("2d"),l=a.getContext("2d");if(l)if(!this.options.allowTaint&&s)l.putImageData(s.getImageData(0,0,t.width,t.height),0,0);else{var u=(A=t.getContext("webgl2"))!==null&&A!==void 0?A:t.getContext("webgl");if(u){var c=u.getContextAttributes();c?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}l.drawImage(t,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return a},e.prototype.createVideoClone=function(t){var A=t.ownerDocument.createElement("canvas");A.width=t.offsetWidth,A.height=t.offsetHeight;var n=A.getContext("2d");try{return n&&(n.drawImage(t,0,0,A.width,A.height),this.options.allowTaint||n.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var a=t.ownerDocument.createElement("canvas");return a.width=t.offsetWidth,a.height=t.offsetHeight,a},e.prototype.appendChildNode=function(t,A,n){(!Ec(A)||!wO(A)&&!A.hasAttribute(mU)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!Ec(A)||!R5(A))&&t.appendChild(this.cloneNode(A,n))},e.prototype.cloneChildNodes=function(t,A,n){for(var a=this,s=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;s;s=s.nextSibling)if(Ec(s)&&pU(s)&&typeof s.assignedNodes=="function"){var l=s.assignedNodes();l.length&&l.forEach(function(u){return a.appendChildNode(A,u,n)})}else this.appendChildNode(A,s,n)},e.prototype.cloneNode=function(t,A){if(cU(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Ec(t)&&(q1(t)||Up(t))){var a=this.createElementClone(t);a.style.transitionProperty="none";var s=n.getComputedStyle(t),l=n.getComputedStyle(t,":before"),u=n.getComputedStyle(t,":after");this.referenceElement===t&&q1(a)&&(this.clonedReferenceElement=a),AB(a)&&_O(a);var c=this.counters.parse(new C5(this.context,s)),h=this.resolvePseudoContent(t,a,l,sh.BEFORE);k5(t)&&(A=!0),M5(t)||this.cloneChildNodes(t,a,A),h&&a.insertBefore(h,a.firstChild);var d=this.resolvePseudoContent(t,a,u,sh.AFTER);return d&&a.appendChild(d),this.counters.pop(c),(s&&(this.options.copyStyles||Up(t))&&!dU(t)||A)&&Fm(s,a),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([a,t.scrollLeft,t.scrollTop]),(Xp(t)||Yp(t))&&(Xp(a)||Yp(a))&&(a.value=t.value),a}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,A,n,a){var s=this;if(n){var l=n.content,u=A.ownerDocument;if(!(!u||!l||l==="none"||l==="-moz-alt-content"||n.display==="none")){this.counters.parse(new C5(this.context,n));var c=new pI(this.context,n),h=u.createElement("html2canvaspseudoelement");Fm(n,h),c.content.forEach(function(B){if(B.type===0)h.appendChild(u.createTextNode(B.value));else if(B.type===22){var y=u.createElement("img");y.src=B.value,y.style.opacity="1",h.appendChild(y)}else if(B.type===18){if(B.name==="attr"){var w=B.values.filter(_A);w.length&&h.appendChild(u.createTextNode(t.getAttribute(w[0].value)||""))}else if(B.name==="counter"){var U=B.values.filter(Kc),x=U[0],S=U[1];if(x&&_A(x)){var E=s.counters.getCounterValue(x.value),_=S&&_A(S)?j1.parse(s.context,S.value):3;h.appendChild(u.createTextNode(yh(E,_,!1)))}}else if(B.name==="counters"){var H=B.values.filter(Kc),x=H[0],D=H[1],S=H[2];if(x&&_A(x)){var q=s.counters.getCounterValues(x.value),ne=S&&_A(S)?j1.parse(s.context,S.value):3,ee=D&&D.type===0?D.value:"",K=q.map(function(I){return yh(I,ne,!1)}).join(ee);h.appendChild(u.createTextNode(K))}}}else if(B.type===20)switch(B.value){case"open-quote":h.appendChild(u.createTextNode(b5(c.quotes,s.quoteDepth++,!0)));break;case"close-quote":h.appendChild(u.createTextNode(b5(c.quotes,--s.quoteDepth,!1)));break;default:h.appendChild(u.createTextNode(B.value))}}),h.className=Y1+" "+W1;var d=a===sh.BEFORE?" "+Y1:" "+W1;return Up(A)?A.className.baseValue+=d:A.className+=d,h}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e})(),sh;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(sh||(sh={}));var CO=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute(mU,"true"),e.body.appendChild(A),A},xO=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},UO=function(e){return Promise.all([].slice.call(e.images,0).map(xO))},EO=function(e){return new Promise(function(t,A){var n=e.contentWindow;if(!n)return A("No window assigned for iframe");var a=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var s=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(s),t(e))},50)}})},QO=["all","d","content"],Fm=function(e,t){for(var A=e.length-1;A>=0;A--){var n=e.item(A);QO.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},FO=function(e){var t="";return e&&(t+=""),t},SO=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},LO=function(e){var t=e[0],A=e[1],n=e[2];t.scrollLeft=A,t.scrollTop=n},TO=":before",NO=":after",Y1="___html2canvas___pseudoelement_before",W1="___html2canvas___pseudoelement_after",q5=`{ content: "" !important; display: none !important; }`,_O=function(e){HO(e,"."+Y1+TO+q5+` .`+W1+NO+q5)},HO=function(e,t){var A=e.ownerDocument;if(A){var n=A.createElement("style");n.textContent=t,e.appendChild(n)}},BU=(function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e})(),DO=(function(){function e(t,A){this.context=t,this._options=A,this._cache={}}return e.prototype.addImage=function(t){var A=Promise.resolve();return this.has(t)||(Lm(t)||RO(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),A},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return Pr(this,void 0,void 0,function(){var A,n,a,s,l=this;return Er(this,function(u){switch(u.label){case 0:return A=BU.isSameOrigin(t),n=!Sm(t)&&this._options.useCORS===!0&&gr.SUPPORT_CORS_IMAGES&&!A,a=!Sm(t)&&!A&&!Lm(t)&&typeof this._options.proxy=="string"&&gr.SUPPORT_CORS_XHR&&!n,!A&&this._options.allowTaint===!1&&!Sm(t)&&!Lm(t)&&!a&&!n?[2]:(s=t,a?[4,this.proxy(s)]:[3,2]);case 1:s=u.sent(),u.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(c,h){var d=new Image;d.onload=function(){return c(d)},d.onerror=h,(kO(s)||n)&&(d.crossOrigin="anonymous"),d.src=s,d.complete===!0&&setTimeout(function(){return c(d)},500),l._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+l._options.imageTimeout+"ms) loading image")},l._options.imageTimeout)})];case 3:return[2,u.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var A=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(s,l){var u=gr.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(u==="text")s(c.response);else{var B=new FileReader;B.addEventListener("load",function(){return s(B.result)},!1),B.addEventListener("error",function(y){return l(y)},!1),B.readAsDataURL(c.response)}else l("Failed to proxy resource "+a+" with status code "+c.status)},c.onerror=l;var h=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+h+"url="+encodeURIComponent(t)+"&responseType="+u),u!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=u),A._options.imageTimeout){var d=A._options.imageTimeout;c.timeout=d,c.ontimeout=function(){return l("Timed out ("+d+"ms) proxying "+a)}}c.send()})},e})(),IO=/^data:image\/svg\+xml/i,OO=/^data:image\/.*;base64,/i,MO=/^data:image\/.*/i,RO=function(e){return gr.SUPPORT_SVG_DRAWING||!PO(e)},Sm=function(e){return MO.test(e)},kO=function(e){return OO.test(e)},Lm=function(e){return e.substr(0,4)==="blob"},PO=function(e){return e.substr(-3).toLowerCase()==="svg"||IO.test(e)},Xe=(function(){function e(t,A){this.type=0,this.x=t,this.y=A}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e})(),mc=function(e,t,A){return new Xe(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},rp=(function(){function e(t,A,n,a){this.type=1,this.start=t,this.startControl=A,this.endControl=n,this.end=a}return e.prototype.subdivide=function(t,A){var n=mc(this.start,this.startControl,t),a=mc(this.startControl,this.endControl,t),s=mc(this.endControl,this.end,t),l=mc(n,a,t),u=mc(a,s,t),c=mc(l,u,t);return A?new e(this.start,n,l,c):new e(c,u,s,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),ia=function(e){return e.type===1},KO=(function(){function e(t){var A=t.styles,n=t.bounds,a=Zf(A.borderTopLeftRadius,n.width,n.height),s=a[0],l=a[1],u=Zf(A.borderTopRightRadius,n.width,n.height),c=u[0],h=u[1],d=Zf(A.borderBottomRightRadius,n.width,n.height),B=d[0],y=d[1],w=Zf(A.borderBottomLeftRadius,n.width,n.height),U=w[0],x=w[1],S=[];S.push((s+c)/n.width),S.push((U+B)/n.width),S.push((l+x)/n.height),S.push((h+y)/n.height);var E=Math.max.apply(Math,S);E>1&&(s/=E,l/=E,c/=E,h/=E,B/=E,y/=E,U/=E,x/=E);var _=n.width-c,H=n.height-y,D=n.width-B,q=n.height-x,ne=A.borderTopWidth,ee=A.borderRightWidth,K=A.borderBottomWidth,P=A.borderLeftWidth,le=RA(A.paddingTop,t.bounds.width),I=RA(A.paddingRight,t.bounds.width),j=RA(A.paddingBottom,t.bounds.width),ae=RA(A.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||l>0?JA(n.left+P/3,n.top+ne/3,s-P/3,l-ne/3,wA.TOP_LEFT):new Xe(n.left+P/3,n.top+ne/3),this.topRightBorderDoubleOuterBox=s>0||l>0?JA(n.left+_,n.top+ne/3,c-ee/3,h-ne/3,wA.TOP_RIGHT):new Xe(n.left+n.width-ee/3,n.top+ne/3),this.bottomRightBorderDoubleOuterBox=B>0||y>0?JA(n.left+D,n.top+H,B-ee/3,y-K/3,wA.BOTTOM_RIGHT):new Xe(n.left+n.width-ee/3,n.top+n.height-K/3),this.bottomLeftBorderDoubleOuterBox=U>0||x>0?JA(n.left+P/3,n.top+q,U-P/3,x-K/3,wA.BOTTOM_LEFT):new Xe(n.left+P/3,n.top+n.height-K/3),this.topLeftBorderDoubleInnerBox=s>0||l>0?JA(n.left+P*2/3,n.top+ne*2/3,s-P*2/3,l-ne*2/3,wA.TOP_LEFT):new Xe(n.left+P*2/3,n.top+ne*2/3),this.topRightBorderDoubleInnerBox=s>0||l>0?JA(n.left+_,n.top+ne*2/3,c-ee*2/3,h-ne*2/3,wA.TOP_RIGHT):new Xe(n.left+n.width-ee*2/3,n.top+ne*2/3),this.bottomRightBorderDoubleInnerBox=B>0||y>0?JA(n.left+D,n.top+H,B-ee*2/3,y-K*2/3,wA.BOTTOM_RIGHT):new Xe(n.left+n.width-ee*2/3,n.top+n.height-K*2/3),this.bottomLeftBorderDoubleInnerBox=U>0||x>0?JA(n.left+P*2/3,n.top+q,U-P*2/3,x-K*2/3,wA.BOTTOM_LEFT):new Xe(n.left+P*2/3,n.top+n.height-K*2/3),this.topLeftBorderStroke=s>0||l>0?JA(n.left+P/2,n.top+ne/2,s-P/2,l-ne/2,wA.TOP_LEFT):new Xe(n.left+P/2,n.top+ne/2),this.topRightBorderStroke=s>0||l>0?JA(n.left+_,n.top+ne/2,c-ee/2,h-ne/2,wA.TOP_RIGHT):new Xe(n.left+n.width-ee/2,n.top+ne/2),this.bottomRightBorderStroke=B>0||y>0?JA(n.left+D,n.top+H,B-ee/2,y-K/2,wA.BOTTOM_RIGHT):new Xe(n.left+n.width-ee/2,n.top+n.height-K/2),this.bottomLeftBorderStroke=U>0||x>0?JA(n.left+P/2,n.top+q,U-P/2,x-K/2,wA.BOTTOM_LEFT):new Xe(n.left+P/2,n.top+n.height-K/2),this.topLeftBorderBox=s>0||l>0?JA(n.left,n.top,s,l,wA.TOP_LEFT):new Xe(n.left,n.top),this.topRightBorderBox=c>0||h>0?JA(n.left+_,n.top,c,h,wA.TOP_RIGHT):new Xe(n.left+n.width,n.top),this.bottomRightBorderBox=B>0||y>0?JA(n.left+D,n.top+H,B,y,wA.BOTTOM_RIGHT):new Xe(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=U>0||x>0?JA(n.left,n.top+q,U,x,wA.BOTTOM_LEFT):new Xe(n.left,n.top+n.height),this.topLeftPaddingBox=s>0||l>0?JA(n.left+P,n.top+ne,Math.max(0,s-P),Math.max(0,l-ne),wA.TOP_LEFT):new Xe(n.left+P,n.top+ne),this.topRightPaddingBox=c>0||h>0?JA(n.left+Math.min(_,n.width-ee),n.top+ne,_>n.width+ee?0:Math.max(0,c-ee),Math.max(0,h-ne),wA.TOP_RIGHT):new Xe(n.left+n.width-ee,n.top+ne),this.bottomRightPaddingBox=B>0||y>0?JA(n.left+Math.min(D,n.width-P),n.top+Math.min(H,n.height-K),Math.max(0,B-ee),Math.max(0,y-K),wA.BOTTOM_RIGHT):new Xe(n.left+n.width-ee,n.top+n.height-K),this.bottomLeftPaddingBox=U>0||x>0?JA(n.left+P,n.top+Math.min(q,n.height-K),Math.max(0,U-P),Math.max(0,x-K),wA.BOTTOM_LEFT):new Xe(n.left+P,n.top+n.height-K),this.topLeftContentBox=s>0||l>0?JA(n.left+P+ae,n.top+ne+le,Math.max(0,s-(P+ae)),Math.max(0,l-(ne+le)),wA.TOP_LEFT):new Xe(n.left+P+ae,n.top+ne+le),this.topRightContentBox=c>0||h>0?JA(n.left+Math.min(_,n.width+P+ae),n.top+ne+le,_>n.width+P+ae?0:c-P+ae,h-(ne+le),wA.TOP_RIGHT):new Xe(n.left+n.width-(ee+I),n.top+ne+le),this.bottomRightContentBox=B>0||y>0?JA(n.left+Math.min(D,n.width-(P+ae)),n.top+Math.min(H,n.height+ne+le),Math.max(0,B-(ee+I)),y-(K+j),wA.BOTTOM_RIGHT):new Xe(n.left+n.width-(ee+I),n.top+n.height-(K+j)),this.bottomLeftContentBox=U>0||x>0?JA(n.left+P+ae,n.top+q,Math.max(0,U-(P+ae)),x-(K+j),wA.BOTTOM_LEFT):new Xe(n.left+P+ae,n.top+n.height-(K+j))}return e})(),wA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(wA||(wA={}));var JA=function(e,t,A,n,a){var s=4*((Math.sqrt(2)-1)/3),l=A*s,u=n*s,c=e+A,h=t+n;switch(a){case wA.TOP_LEFT:return new rp(new Xe(e,h),new Xe(e,h-u),new Xe(c-l,t),new Xe(c,t));case wA.TOP_RIGHT:return new rp(new Xe(e,t),new Xe(e+l,t),new Xe(c,h-u),new Xe(c,h));case wA.BOTTOM_RIGHT:return new rp(new Xe(c,t),new Xe(c,t+u),new Xe(e+l,h),new Xe(e,h));case wA.BOTTOM_LEFT:default:return new rp(new Xe(c,h),new Xe(c-l,h),new Xe(e,t+u),new Xe(e,t))}},Wp=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},jO=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Jp=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},VO=(function(){function e(t,A,n){this.offsetX=t,this.offsetY=A,this.matrix=n,this.type=0,this.target=6}return e})(),ip=(function(){function e(t,A){this.path=t,this.target=A,this.type=1}return e})(),GO=(function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e})(),zO=function(e){return e.type===0},wU=function(e){return e.type===1},qO=function(e){return e.type===2},X5=function(e,t){return e.length===t.length?e.some(function(A,n){return A===t[n]}):!1},XO=function(e,t,A,n,a){return e.map(function(s,l){switch(l){case 0:return s.add(t,A);case 1:return s.add(t+n,A);case 2:return s.add(t+n,A+a);case 3:return s.add(t,A+a)}return s})},vU=(function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),yU=(function(){function e(t,A){if(this.container=t,this.parent=A,this.effects=[],this.curves=new KO(this.container),this.container.styles.opacity<1&&this.effects.push(new GO(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,s=this.container.styles.transform;this.effects.push(new VO(n,a,s))}if(this.container.styles.overflowX!==0){var l=Wp(this.curves),u=Jp(this.curves);X5(l,u)?this.effects.push(new ip(l,6)):(this.effects.push(new ip(l,2)),this.effects.push(new ip(u,4)))}}return e.prototype.getEffects=function(t){for(var A=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var s=n.effects.filter(function(c){return!wU(c)});if(A||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,s),A=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var l=Wp(n.curves),u=Jp(n.curves);X5(l,u)||a.unshift(new ip(u,6))}}else a.unshift.apply(a,s);n=n.parent}return a.filter(function(c){return Xn(c.target,t)})},e})(),J1=function(e,t,A,n){e.container.elements.forEach(function(a){var s=Xn(a.flags,4),l=Xn(a.flags,2),u=new yU(a,e);Xn(a.styles.display,2048)&&n.push(u);var c=Xn(a.flags,8)?[]:n;if(s||l){var h=s||a.styles.isPositioned()?A:t,d=new vU(u);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var B=a.styles.zIndex.order;if(B<0){var y=0;h.negativeZIndex.some(function(U,x){return B>U.element.container.styles.zIndex.order?(y=x,!1):y>0}),h.negativeZIndex.splice(y,0,d)}else if(B>0){var w=0;h.positiveZIndex.some(function(U,x){return B>=U.element.container.styles.zIndex.order?(w=x+1,!1):w>0}),h.positiveZIndex.splice(w,0,d)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else a.styles.isFloating()?h.nonPositionedFloats.push(d):h.nonPositionedInlineLevel.push(d);J1(u,d,s?d:A,c)}else a.styles.isInlineLevel()?t.inlineLevel.push(u):t.nonInlineLevel.push(u),J1(u,t,A,c);Xn(a.flags,8)&&bU(a,c)})},bU=function(e,t){for(var A=e instanceof z1?e.start:1,n=e instanceof z1?e.reversed:!1,a=0;a"u"?e[0]:A},AM=function(e,t,A,n,a){var s=t[0],l=t[1],u=A[0],c=A[1];switch(e){case 2:return[new Xe(Math.round(n.left),Math.round(n.top+l)),new Xe(Math.round(n.left+n.width),Math.round(n.top+l)),new Xe(Math.round(n.left+n.width),Math.round(c+n.top+l)),new Xe(Math.round(n.left),Math.round(c+n.top+l))];case 3:return[new Xe(Math.round(n.left+s),Math.round(n.top)),new Xe(Math.round(n.left+s+u),Math.round(n.top)),new Xe(Math.round(n.left+s+u),Math.round(n.height+n.top)),new Xe(Math.round(n.left+s),Math.round(n.height+n.top))];case 1:return[new Xe(Math.round(n.left+s),Math.round(n.top+l)),new Xe(Math.round(n.left+s+u),Math.round(n.top+l)),new Xe(Math.round(n.left+s+u),Math.round(n.top+l+c)),new Xe(Math.round(n.left+s),Math.round(n.top+l+c))];default:return[new Xe(Math.round(a.left),Math.round(a.top)),new Xe(Math.round(a.left+a.width),Math.round(a.top)),new Xe(Math.round(a.left+a.width),Math.round(a.height+a.top)),new Xe(Math.round(a.left),Math.round(a.height+a.top))]}},nM="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",W5="Hidden Text",rM=(function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,A){var n=this._document.createElement("div"),a=this._document.createElement("img"),s=this._document.createElement("span"),l=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=A,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",l.appendChild(n),a.src=nM,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",s.style.fontFamily=t,s.style.fontSize=A,s.style.margin="0",s.style.padding="0",s.appendChild(this._document.createTextNode(W5)),n.appendChild(s),n.appendChild(a);var u=a.offsetTop-s.offsetTop+2;n.removeChild(s),n.appendChild(this._document.createTextNode(W5)),n.style.lineHeight="normal",a.style.verticalAlign="super";var c=a.offsetTop-n.offsetTop+2;return l.removeChild(n),{baseline:u,middle:c}},e.prototype.getMetrics=function(t,A){var n=t+" "+A;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,A)),this._data[n]},e})(),xU=(function(){function e(t,A){this.context=t,this.options=A}return e})(),iM=1e4,aM=(function(e){Xa(t,e);function t(A,n){var a=e.call(this,A,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new rM(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return t.prototype.applyEffects=function(A){for(var n=this;this._activeEffects.length;)this.popEffect();A.forEach(function(a){return n.applyEffect(a)})},t.prototype.applyEffect=function(A){this.ctx.save(),qO(A)&&(this.ctx.globalAlpha=A.opacity),zO(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),wU(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return Pr(this,void 0,void 0,function(){var n;return Er(this,function(a){switch(a.label){case 0:return n=A.element.container.styles,n.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(A){return Pr(this,void 0,void 0,function(){return Er(this,function(n){switch(n.label){case 0:if(Xn(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(A)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(A,n,a){var s=this;if(n===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+a);else{var l=eB(A.text);l.reduce(function(u,c){return s.ctx.fillText(c,u,A.bounds.top+a),u+s.ctx.measureText(c).width},A.bounds.left)}},t.prototype.createFontStyle=function(A){var n=A.fontVariant.filter(function(l){return l==="normal"||l==="small-caps"}).join(""),a=cM(A.fontFamily).join(", "),s=Hh(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,n,A.fontWeight,s,a].join(" "),a,s]},t.prototype.renderTextNode=function(A,n){return Pr(this,void 0,void 0,function(){var a,s,l,u,c,h,d,B,y=this;return Er(this,function(w){return a=this.createFontStyle(n),s=a[0],l=a[1],u=a[2],this.ctx.font=s,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(l,u),h=c.baseline,d=c.middle,B=n.paintOrder,A.textBounds.forEach(function(U){B.forEach(function(x){switch(x){case 0:y.ctx.fillStyle=rr(n.color),y.renderTextWithLetterSpacing(U,n.letterSpacing,h);var S=n.textShadow;S.length&&U.text.trim().length&&(S.slice(0).reverse().forEach(function(E){y.ctx.shadowColor=rr(E.color),y.ctx.shadowOffsetX=E.offsetX.number*y.options.scale,y.ctx.shadowOffsetY=E.offsetY.number*y.options.scale,y.ctx.shadowBlur=E.blur.number,y.renderTextWithLetterSpacing(U,n.letterSpacing,h)}),y.ctx.shadowColor="",y.ctx.shadowOffsetX=0,y.ctx.shadowOffsetY=0,y.ctx.shadowBlur=0),n.textDecorationLine.length&&(y.ctx.fillStyle=rr(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(E){switch(E){case 1:y.ctx.fillRect(U.bounds.left,Math.round(U.bounds.top+h),U.bounds.width,1);break;case 2:y.ctx.fillRect(U.bounds.left,Math.round(U.bounds.top),U.bounds.width,1);break;case 3:y.ctx.fillRect(U.bounds.left,Math.ceil(U.bounds.top+d),U.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&U.text.trim().length&&(y.ctx.strokeStyle=rr(n.webkitTextStrokeColor),y.ctx.lineWidth=n.webkitTextStrokeWidth,y.ctx.lineJoin=window.chrome?"miter":"round",y.ctx.strokeText(U.text,U.bounds.left,U.bounds.top+h)),y.ctx.strokeStyle="",y.ctx.lineWidth=0,y.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(A,n,a){if(a&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var s=Zp(A),l=Jp(n);this.path(l),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,A.intrinsicWidth,A.intrinsicHeight,s.left,s.top,s.width,s.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return Pr(this,void 0,void 0,function(){var n,a,s,l,u,c,_,_,h,d,B,y,D,w,U,q,x,S,E,_,H,D,q;return Er(this,function(ne){switch(ne.label){case 0:this.applyEffects(A.getEffects(4)),n=A.container,a=A.curves,s=n.styles,l=0,u=n.textNodes,ne.label=1;case 1:return l0&&W>0&&(K=s.ctx.createPattern(q,"repeat"),s.renderRepeat(le,K,J,se))):qH(d)&&(P=Tm(A,n,[null,null,null]),le=P[0],I=P[1],j=P[2],ae=P[3],W=P[4],ge=d.position.length===0?[J2]:d.position,J=RA(ge[0],ae),se=RA(ge[ge.length-1],W),X=KH(d,J,se,ae,W),me=X[0],Se=X[1],me>0&&Se>0&&(z=s.ctx.createRadialGradient(I+J,j+se,0,I+J,j+se,me),B5(d.stops,me*2).forEach(function(fe){return z.addColorStop(fe.stop,rr(fe.color))}),s.path(le),s.ctx.fillStyle=z,me!==Se?(L=A.bounds.left+.5*A.bounds.width,M=A.bounds.top+.5*A.bounds.height,G=Se/me,oe=1/G,s.ctx.save(),s.ctx.translate(L,M),s.ctx.transform(1,0,0,G,0,0),s.ctx.translate(-L,-M),s.ctx.fillRect(I,oe*(j-M)+M,ae,W*oe),s.ctx.restore()):s.ctx.fill())),ue.label=6;case 6:return n--,[2]}})},s=this,l=0,u=A.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return l0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,u,A.curves,2)]:[3,11]):[3,13];case 4:return y.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,u,A.curves,3)];case 6:return y.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,u,A.curves)];case 8:return y.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,u,A.curves)];case 10:y.sent(),y.label=11;case 11:u++,y.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,n,a,s,l){return Pr(this,void 0,void 0,function(){var u,c,h,d,B,y,w,U,x,S,E,_,H,D,q,ne,q,ne;return Er(this,function(ee){return this.ctx.save(),u=ZO(s,a),c=Y5(s,a),l===2&&(this.path(c),this.ctx.clip()),ia(c[0])?(h=c[0].start.x,d=c[0].start.y):(h=c[0].x,d=c[0].y),ia(c[1])?(B=c[1].end.x,y=c[1].end.y):(B=c[1].x,y=c[1].y),a===0||a===2?w=Math.abs(h-B):w=Math.abs(d-y),this.ctx.beginPath(),l===3?this.formatPath(u):this.formatPath(c.slice(0,2)),U=n<3?n*3:n*2,x=n<3?n*2:n,l===3&&(U=n,x=n),S=!0,w<=U*2?S=!1:w<=U*2+x?(E=w/(2*U+x),U*=E,x*=E):(_=Math.floor((w+x)/(U+x)),H=(w-_*U)/(_-1),D=(w-(_+1)*U)/_,x=D<=0||Math.abs(x-H)0){let c=function(h){return Promise.all(h.map(d=>Promise.resolve(d).then(B=>({status:"fulfilled",value:B}),B=>({status:"rejected",reason:B}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");a=c(A.map(h=>{if(h=vM(h),h in J5)return;J5[h]=!0;const d=h.endsWith(".css"),B=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${B}`))return;const y=document.createElement("link");if(y.rel=d?"stylesheet":wM,d||(y.as="script"),y.crossOrigin="",y.href=h,u&&y.setAttribute("nonce",u),document.head.appendChild(y),d)return new Promise((w,U)=>{y.addEventListener("load",w),y.addEventListener("error",()=>U(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return a.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};function UA(e){"@babel/helpers - typeof";return UA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UA(e)}var qa=Uint8Array,Di=Uint16Array,nB=Int32Array,rB=new qa([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),iB=new qa([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Z5=new qa([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),EU=function(e,t){for(var A=new Di(31),n=0;n<31;++n)A[n]=t+=1<>1|(zA&21845)<<1;Al=(Al&52428)>>2|(Al&13107)<<2,Al=(Al&61680)>>4|(Al&3855)<<4,$1[zA]=((Al&65280)>>8|(Al&255)<<8)>>1}var oh=(function(e,t,A){for(var n=e.length,a=0,s=new Di(t);a>c]=h}else for(u=new Di(n),a=0;a>15-e[a]);return u}),mu=new qa(288);for(var zA=0;zA<144;++zA)mu[zA]=8;for(var zA=144;zA<256;++zA)mu[zA]=9;for(var zA=256;zA<280;++zA)mu[zA]=7;for(var zA=280;zA<288;++zA)mu[zA]=8;var $p=new qa(32);for(var zA=0;zA<32;++zA)$p[zA]=5;var CM=oh(mu,9,0),xM=oh($p,5,0),FU=function(e){return(e+7)/8|0},UM=function(e,t,A){return(A==null||A>e.length)&&(A=e.length),new qa(e.subarray(t,A))},co=function(e,t,A){A<<=t&7;var n=t/8|0;e[n]|=A,e[n+1]|=A>>8},Gf=function(e,t,A){A<<=t&7;var n=t/8|0;e[n]|=A,e[n+1]|=A>>8,e[n+2]|=A>>16},_m=function(e,t){for(var A=[],n=0;ny&&(y=s[n].s);var w=new Di(y+1),U=e2(A[d-1],w,0);if(U>t){var n=0,x=0,S=U-t,E=1<t)x+=E-(1<>=S;x>0;){var H=s[n].s;w[H]=0&&x;--n){var D=s[n].s;w[D]==t&&(--w[D],++x)}U=t}return{t:new qa(w),l:U}},e2=function(e,t,A){return e.s==-1?Math.max(e2(e.l,t,A+1),e2(e.r,t,A+1)):t[e.s]=A},eb=function(e){for(var t=e.length;t&&!e[--t];);for(var A=new Di(++t),n=0,a=e[0],s=1,l=function(c){A[n++]=c},u=1;u<=t;++u)if(e[u]==a&&u!=t)++s;else{if(!a&&s>2){for(;s>138;s-=138)l(32754);s>2&&(l(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(l(a),--s;s>6;s-=6)l(8304);s>2&&(l(s-3<<5|8208),s=0)}for(;s--;)l(a);s=1,a=e[u]}return{c:A.subarray(0,n),n:t}},zf=function(e,t){for(var A=0,n=0;n>8,e[a+2]=e[a]^255,e[a+3]=e[a+1]^255;for(var s=0;s4&&!le[Z5[j-1]];--j);var ae=h+5<<3,W=zf(a,mu)+zf(s,$p)+l,ge=zf(a,y)+zf(s,x)+l+14+3*j+zf(ee,le)+2*ee[16]+3*ee[17]+7*ee[18];if(c>=0&&ae<=W&&ae<=ge)return SU(t,d,e.subarray(c,c+h));var J,se,X,me;if(co(t,d,1+(ge15&&(co(t,d,M[K]>>5&127),d+=M[K]>>12)}}else J=CM,se=mu,X=xM,me=$p;for(var K=0;K255){var G=oe>>18&31;Gf(t,d,J[G+257]),d+=se[G+257],G>7&&(co(t,d,oe>>23&31),d+=rB[G]);var ue=oe&31;Gf(t,d,X[ue]),d+=me[ue],ue>3&&(Gf(t,d,oe>>5&8191),d+=iB[ue])}else Gf(t,d,J[oe]),d+=se[oe]}return Gf(t,d,J[256]),d+se[256]},EM=new nB([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),LU=new qa(0),QM=function(e,t,A,n,a,s){var l=s.z||e.length,u=new qa(n+l+5*(1+Math.ceil(l/7e3))+a),c=u.subarray(n,u.length-a),h=s.l,d=(s.r||0)&7;if(t){d&&(c[0]=s.r>>3);for(var B=EM[t-1],y=B>>13,w=B&8191,U=(1<7e3||le>24576)&&(J>423||!h)){d=tb(e,c,0,D,q,ne,K,le,j,P-j,d),le=ee=K=0,j=P;for(var se=0;se<286;++se)q[se]=0;for(var se=0;se<30;++se)ne[se]=0}var X=2,me=0,Se=w,z=W-ge&32767;if(J>2&&ae==H(P-z))for(var L=Math.min(y,J)-1,M=Math.min(32767,P),G=Math.min(258,J);z<=M&&--Se&&W!=ge;){if(e[P+X]==e[P+X-z]){for(var oe=0;oeX){if(X=oe,me=z,oe>L)break;for(var ue=Math.min(z,oe-2),fe=0,se=0;sefe&&(fe=_e,ge=Qe)}}}W=ge,ge=x[W],z+=W-ge&32767}if(me){D[le++]=268435456|Z1[X]<<18|$5[me];var Ke=Z1[X]&31,Ge=$5[me]&31;K+=rB[Ke]+iB[Ge],++q[257+Ke],++ne[Ge],I=P+X,++ee}else D[le++]=e[P],++q[e[P]]}}for(P=Math.max(P,I);P=l&&(c[d/8|0]=h,ze=l),d=SU(c,d+1,e.subarray(P,ze))}s.i=l}return UM(u,0,n+FU(d)+a)},TU=function(){var e=1,t=0;return{p:function(A){for(var n=e,a=t,s=A.length|0,l=0;l!=s;){for(var u=Math.min(l+2655,s);l>16),a=(a&65535)+15*(a>>16)}e=n,t=a},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},FM=function(e,t,A,n,a){if(!a&&(a={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),l=new qa(s.length+e.length);l.set(s),l.set(e,s.length),e=l,a.w=s.length}return QM(e,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,A,n,a)},NU=function(e,t,A){for(;A;++t)e[t]=A,A>>>=8},SM=function(e,t){var A=t.level,n=A==0?0:A<6?1:A==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=TU();a.p(t.dictionary),NU(e,2,a.d())}};function t2(e,t){t||(t={});var A=TU();A.p(e);var n=FM(e,t,t.dictionary?6:2,4);return SM(n,t),NU(n,n.length-4,A.d()),n}var LM=typeof TextDecoder<"u"&&new TextDecoder,TM=0;try{LM.decode(LU,{stream:!0}),TM=1}catch{}function NM(e){if(Array.isArray(e))return e}function _M(e,t){var A=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(A!=null){var n,a,s,l,u=[],c=!0,h=!1;try{if(s=(A=A.call(e)).next,t!==0)for(;!(c=(n=s.call(A)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(d){h=!0,a=d}finally{try{if(!c&&A.return!=null&&(l=A.return(),Object(l)!==l))return}finally{if(h)throw a}}return u}}function Ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,n=Array(t);A{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),Hm={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class aB{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=MM,A={}){let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const a=A.offset?A.offset>>>0:0,s=t.byteLength-a;let l=a;(ArrayBuffer.isView(t)||t instanceof aB)&&(t.byteLength!==t.buffer.byteLength&&(l=t.byteOffset+a),t=t.buffer),n?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=l,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,l,s),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,a=new Uint8Array(n);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,A){const n=Hm[A].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,s=this.buffer.slice(a,a+n);if(this.littleEndian===RM&&A!=="uint8"&&A!=="int8"){const u=new Uint8Array(this.buffer.slice(a,a+n));u.reverse();const c=new Hm[A](u.buffer);return this.offset+=n,c.reverse(),c}const l=new Hm[A](s);return this.offset+=n,l}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let A="";for(let n=0;nthis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Zc(e){let t=e.length;for(;--t>=0;)e[t]=0}const kM=3,PM=258,_U=29,KM=256,jM=KM+1+_U,HU=30,VM=512,GM=new Array((jM+2)*2);Zc(GM);const zM=new Array(HU*2);Zc(zM);const qM=new Array(VM);Zc(qM);const XM=new Array(PM-kM+1);Zc(XM);const YM=new Array(_U);Zc(YM);const WM=new Array(HU);Zc(WM);const JM=(e,t,A,n)=>{let a=e&65535|0,s=e>>>16&65535|0,l=0;for(;A!==0;){l=A>2e3?2e3:A,A-=l;do a=a+t[n++]|0,s=s+a|0;while(--l);a%=65521,s%=65521}return a|s<<16|0};var A2=JM;const ZM=()=>{let e,t=[];for(var A=0;A<256;A++){e=A;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[A]=e}return t},$M=new Uint32Array(ZM()),e7=(e,t,A,n)=>{const a=$M,s=n+A;e^=-1;for(let l=n;l>>8^a[(e^t[l])&255];return e^-1};var Bs=e7,n2={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},DU={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const t7=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var A7=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const A=t.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(const n in A)t7(A,n)&&(e[n]=A[n])}}return e},n7=e=>{let t=0;for(let n=0,a=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;bh[254]=bh[254]=1;var r7=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,A,n,a,s,l=e.length,u=0;for(a=0;a>>6,t[s++]=128|A&63):A<65536?(t[s++]=224|A>>>12,t[s++]=128|A>>>6&63,t[s++]=128|A&63):(t[s++]=240|A>>>18,t[s++]=128|A>>>12&63,t[s++]=128|A>>>6&63,t[s++]=128|A&63);return t};const i7=(e,t)=>{if(t<65534&&e.subarray&&OU)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let A="";for(let n=0;n{const A=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,a;const s=new Array(A*2);for(a=0,n=0;n4){s[a++]=65533,n+=u-1;continue}for(l&=u===2?31:u===3?15:7;u>1&&n1){s[a++]=65533;continue}l<65536?s[a++]=l:(l-=65536,s[a++]=55296|l>>10&1023,s[a++]=56320|l&1023)}return i7(s,a)},s7=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let A=t-1;for(;A>=0&&(e[A]&192)===128;)A--;return A<0||A===0?t:A+bh[e[A]]>t?A:t},r2={string2buf:r7,buf2string:a7,utf8border:s7};function o7(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var l7=o7;const op=16209,u7=16191;var c7=function(t,A){let n,a,s,l,u,c,h,d,B,y,w,U,x,S,E,_,H,D,q,ne,ee,K,P,le;const I=t.state;n=t.next_in,P=t.input,a=n+(t.avail_in-5),s=t.next_out,le=t.output,l=s-(A-t.avail_out),u=s+(t.avail_out-257),c=I.dmax,h=I.wsize,d=I.whave,B=I.wnext,y=I.window,w=I.hold,U=I.bits,x=I.lencode,S=I.distcode,E=(1<>>24,w>>>=D,U-=D,D=H>>>16&255,D===0)le[s++]=H&65535;else if(D&16){q=H&65535,D&=15,D&&(U>>=D,U-=D),U<15&&(w+=P[n++]<>>24,w>>>=D,U-=D,D=H>>>16&255,D&16){if(ne=H&65535,D&=15,Uc){t.msg="invalid distance too far back",I.mode=op;break e}if(w>>>=D,U-=D,D=s-l,ne>D){if(D=ne-D,D>d&&I.sane){t.msg="invalid distance too far back",I.mode=op;break e}if(ee=0,K=y,B===0){if(ee+=h-D,D2;)le[s++]=K[ee++],le[s++]=K[ee++],le[s++]=K[ee++],q-=3;q&&(le[s++]=K[ee++],q>1&&(le[s++]=K[ee++]))}else{ee=s-ne;do le[s++]=le[ee++],le[s++]=le[ee++],le[s++]=le[ee++],q-=3;while(q>2);q&&(le[s++]=le[ee++],q>1&&(le[s++]=le[ee++]))}}else if((D&64)===0){H=S[(H&65535)+(w&(1<>3,n-=q,U-=q<<3,w&=(1<{const c=u.bits;let h=0,d=0,B=0,y=0,w=0,U=0,x=0,S=0,E=0,_=0,H,D,q,ne,ee,K=null,P;const le=new Uint16Array(wc+1),I=new Uint16Array(wc+1);let j=null,ae,W,ge;for(h=0;h<=wc;h++)le[h]=0;for(d=0;d=1&&le[y]===0;y--);if(w>y&&(w=y),y===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,u.bits=1,0;for(B=1;B0&&(e===sb||y!==1))return-1;for(I[1]=0,h=1;hib||e===ob&&E>ab)return 1;for(;;){ae=h-x,l[d]+1=P?(W=j[l[d]-P],ge=K[l[d]-P]):(W=96,ge=0),H=1<>x)+D]=ae<<24|W<<16|ge|0;while(D!==0);for(H=1<>=1;if(H!==0?(_&=H-1,_+=H):_=0,d++,--le[h]===0){if(h===y)break;h=t[A+l[d]]}if(h>w&&(_&ne)!==q){for(x===0&&(x=w),ee+=B,U=h-x,S=1<ib||e===ob&&E>ab)return 1;q=_&ne,a[q]=w<<24|U<<16|ee-s|0}}return _!==0&&(a[ee+_]=h-x<<24|64<<16|0),u.bits=w,0};var lh=g7;const m7=0,MU=1,RU=2,{Z_FINISH:lb,Z_BLOCK:B7,Z_TREES:lp,Z_OK:Bu,Z_STREAM_END:w7,Z_NEED_DICT:v7,Z_STREAM_ERROR:fa,Z_DATA_ERROR:kU,Z_MEM_ERROR:PU,Z_BUF_ERROR:y7,Z_DEFLATED:ub}=DU,Ng=16180,cb=16181,fb=16182,hb=16183,db=16184,pb=16185,gb=16186,mb=16187,Bb=16188,wb=16189,eg=16190,fo=16191,Im=16192,vb=16193,Om=16194,yb=16195,bb=16196,Cb=16197,xb=16198,up=16199,cp=16200,Ub=16201,Eb=16202,Qb=16203,Fb=16204,Sb=16205,Mm=16206,Lb=16207,Tb=16208,ZA=16209,KU=16210,jU=16211,b7=852,C7=592,x7=15,U7=x7,Nb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function E7(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const wu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modejU?1:0},VU=e=>{if(wu(e))return fa;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Ng,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(b7),t.distcode=t.distdyn=new Int32Array(C7),t.sane=1,t.back=-1,Bu},GU=e=>{if(wu(e))return fa;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,VU(e)},zU=(e,t)=>{let A;if(wu(e))return fa;const n=e.state;return t<0?(A=0,t=-t):(A=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?fa:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=A,n.wbits=t,GU(e))},qU=(e,t)=>{if(!e)return fa;const A=new E7;e.state=A,A.strm=e,A.window=null,A.mode=Ng;const n=zU(e,t);return n!==Bu&&(e.state=null),n},Q7=e=>qU(e,U7);let _b=!0,Rm,km;const F7=e=>{if(_b){Rm=new Int32Array(512),km=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(lh(MU,e.lens,0,288,Rm,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;lh(RU,e.lens,0,32,km,0,e.work,{bits:5}),_b=!1}e.lencode=Rm,e.lenbits=9,e.distcode=km,e.distbits=5},XU=(e,t,A,n)=>{let a;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(A-s.wsize,A),0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>n&&(a=n),s.window.set(t.subarray(A-n,A-n+a),s.wnext),n-=a,n?(s.window.set(t.subarray(A-n,A),0),s.wnext=n,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave{let A,n,a,s,l,u,c,h,d,B,y,w,U,x,S=0,E,_,H,D,q,ne,ee,K;const P=new Uint8Array(4);let le,I;const j=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(wu(e)||!e.output||!e.input&&e.avail_in!==0)return fa;A=e.state,A.mode===fo&&(A.mode=Im),l=e.next_out,a=e.output,c=e.avail_out,s=e.next_in,n=e.input,u=e.avail_in,h=A.hold,d=A.bits,B=u,y=c,K=Bu;e:for(;;)switch(A.mode){case Ng:if(A.wrap===0){A.mode=Im;break}for(;d<16;){if(u===0)break e;u--,h+=n[s++]<>>8&255,A.check=Bs(A.check,P,2,0),h=0,d=0,A.mode=cb;break}if(A.head&&(A.head.done=!1),!(A.wrap&1)||(((h&255)<<8)+(h>>8))%31){e.msg="incorrect header check",A.mode=ZA;break}if((h&15)!==ub){e.msg="unknown compression method",A.mode=ZA;break}if(h>>>=4,d-=4,ee=(h&15)+8,A.wbits===0&&(A.wbits=ee),ee>15||ee>A.wbits){e.msg="invalid window size",A.mode=ZA;break}A.dmax=1<>8&1),A.flags&512&&A.wrap&4&&(P[0]=h&255,P[1]=h>>>8&255,A.check=Bs(A.check,P,2,0)),h=0,d=0,A.mode=fb;case fb:for(;d<32;){if(u===0)break e;u--,h+=n[s++]<>>8&255,P[2]=h>>>16&255,P[3]=h>>>24&255,A.check=Bs(A.check,P,4,0)),h=0,d=0,A.mode=hb;case hb:for(;d<16;){if(u===0)break e;u--,h+=n[s++]<>8),A.flags&512&&A.wrap&4&&(P[0]=h&255,P[1]=h>>>8&255,A.check=Bs(A.check,P,2,0)),h=0,d=0,A.mode=db;case db:if(A.flags&1024){for(;d<16;){if(u===0)break e;u--,h+=n[s++]<>>8&255,A.check=Bs(A.check,P,2,0)),h=0,d=0}else A.head&&(A.head.extra=null);A.mode=pb;case pb:if(A.flags&1024&&(w=A.length,w>u&&(w=u),w&&(A.head&&(ee=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Uint8Array(A.head.extra_len)),A.head.extra.set(n.subarray(s,s+w),ee)),A.flags&512&&A.wrap&4&&(A.check=Bs(A.check,n,w,s)),u-=w,s+=w,A.length-=w),A.length))break e;A.length=0,A.mode=gb;case gb:if(A.flags&2048){if(u===0)break e;w=0;do ee=n[s+w++],A.head&&ee&&A.length<65536&&(A.head.name+=String.fromCharCode(ee));while(ee&&w>9&1,A.head.done=!0),e.adler=A.check=0,A.mode=fo;break;case wb:for(;d<32;){if(u===0)break e;u--,h+=n[s++]<>>=d&7,d-=d&7,A.mode=Mm;break}for(;d<3;){if(u===0)break e;u--,h+=n[s++]<>>=1,d-=1,h&3){case 0:A.mode=vb;break;case 1:if(F7(A),A.mode=up,t===lp){h>>>=2,d-=2;break e}break;case 2:A.mode=bb;break;case 3:e.msg="invalid block type",A.mode=ZA}h>>>=2,d-=2;break;case vb:for(h>>>=d&7,d-=d&7;d<32;){if(u===0)break e;u--,h+=n[s++]<>>16^65535)){e.msg="invalid stored block lengths",A.mode=ZA;break}if(A.length=h&65535,h=0,d=0,A.mode=Om,t===lp)break e;case Om:A.mode=yb;case yb:if(w=A.length,w){if(w>u&&(w=u),w>c&&(w=c),w===0)break e;a.set(n.subarray(s,s+w),l),u-=w,s+=w,c-=w,l+=w,A.length-=w;break}A.mode=fo;break;case bb:for(;d<14;){if(u===0)break e;u--,h+=n[s++]<>>=5,d-=5,A.ndist=(h&31)+1,h>>>=5,d-=5,A.ncode=(h&15)+4,h>>>=4,d-=4,A.nlen>286||A.ndist>30){e.msg="too many length or distance symbols",A.mode=ZA;break}A.have=0,A.mode=Cb;case Cb:for(;A.have>>=3,d-=3}for(;A.have<19;)A.lens[j[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,le={bits:A.lenbits},K=lh(m7,A.lens,0,19,A.lencode,0,A.work,le),A.lenbits=le.bits,K){e.msg="invalid code lengths set",A.mode=ZA;break}A.have=0,A.mode=xb;case xb:for(;A.have>>24,_=S>>>16&255,H=S&65535,!(E<=d);){if(u===0)break e;u--,h+=n[s++]<>>=E,d-=E,A.lens[A.have++]=H;else{if(H===16){for(I=E+2;d>>=E,d-=E,A.have===0){e.msg="invalid bit length repeat",A.mode=ZA;break}ee=A.lens[A.have-1],w=3+(h&3),h>>>=2,d-=2}else if(H===17){for(I=E+3;d>>=E,d-=E,ee=0,w=3+(h&7),h>>>=3,d-=3}else{for(I=E+7;d>>=E,d-=E,ee=0,w=11+(h&127),h>>>=7,d-=7}if(A.have+w>A.nlen+A.ndist){e.msg="invalid bit length repeat",A.mode=ZA;break}for(;w--;)A.lens[A.have++]=ee}}if(A.mode===ZA)break;if(A.lens[256]===0){e.msg="invalid code -- missing end-of-block",A.mode=ZA;break}if(A.lenbits=9,le={bits:A.lenbits},K=lh(MU,A.lens,0,A.nlen,A.lencode,0,A.work,le),A.lenbits=le.bits,K){e.msg="invalid literal/lengths set",A.mode=ZA;break}if(A.distbits=6,A.distcode=A.distdyn,le={bits:A.distbits},K=lh(RU,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,le),A.distbits=le.bits,K){e.msg="invalid distances set",A.mode=ZA;break}if(A.mode=up,t===lp)break e;case up:A.mode=cp;case cp:if(u>=6&&c>=258){e.next_out=l,e.avail_out=c,e.next_in=s,e.avail_in=u,A.hold=h,A.bits=d,c7(e,y),l=e.next_out,a=e.output,c=e.avail_out,s=e.next_in,n=e.input,u=e.avail_in,h=A.hold,d=A.bits,A.mode===fo&&(A.back=-1);break}for(A.back=0;S=A.lencode[h&(1<>>24,_=S>>>16&255,H=S&65535,!(E<=d);){if(u===0)break e;u--,h+=n[s++]<>D)],E=S>>>24,_=S>>>16&255,H=S&65535,!(D+E<=d);){if(u===0)break e;u--,h+=n[s++]<>>=D,d-=D,A.back+=D}if(h>>>=E,d-=E,A.back+=E,A.length=H,_===0){A.mode=Sb;break}if(_&32){A.back=-1,A.mode=fo;break}if(_&64){e.msg="invalid literal/length code",A.mode=ZA;break}A.extra=_&15,A.mode=Ub;case Ub:if(A.extra){for(I=A.extra;d>>=A.extra,d-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=Eb;case Eb:for(;S=A.distcode[h&(1<>>24,_=S>>>16&255,H=S&65535,!(E<=d);){if(u===0)break e;u--,h+=n[s++]<>D)],E=S>>>24,_=S>>>16&255,H=S&65535,!(D+E<=d);){if(u===0)break e;u--,h+=n[s++]<>>=D,d-=D,A.back+=D}if(h>>>=E,d-=E,A.back+=E,_&64){e.msg="invalid distance code",A.mode=ZA;break}A.offset=H,A.extra=_&15,A.mode=Qb;case Qb:if(A.extra){for(I=A.extra;d>>=A.extra,d-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){e.msg="invalid distance too far back",A.mode=ZA;break}A.mode=Fb;case Fb:if(c===0)break e;if(w=y-c,A.offset>w){if(w=A.offset-w,w>A.whave&&A.sane){e.msg="invalid distance too far back",A.mode=ZA;break}w>A.wnext?(w-=A.wnext,U=A.wsize-w):U=A.wnext-w,w>A.length&&(w=A.length),x=A.window}else x=a,U=l-A.offset,w=A.length;w>c&&(w=c),c-=w,A.length-=w;do a[l++]=x[U++];while(--w);A.length===0&&(A.mode=cp);break;case Sb:if(c===0)break e;a[l++]=A.length,c--,A.mode=cp;break;case Mm:if(A.wrap){for(;d<32;){if(u===0)break e;u--,h|=n[s++]<{if(wu(e))return fa;let t=e.state;return t.window&&(t.window=null),e.state=null,Bu},T7=(e,t)=>{if(wu(e))return fa;const A=e.state;return(A.wrap&2)===0?fa:(A.head=t,t.done=!1,Bu)},N7=(e,t)=>{const A=t.length;let n,a,s;return wu(e)||(n=e.state,n.wrap!==0&&n.mode!==eg)?fa:n.mode===eg&&(a=1,a=A2(a,t,A,0),a!==n.check)?kU:(s=XU(e,t,A,A),s?(n.mode=KU,PU):(n.havedict=1,Bu))};var _7=GU,H7=zU,D7=VU,I7=Q7,O7=qU,M7=S7,R7=L7,k7=T7,P7=N7,K7="pako inflate (from Nodeca project)",ho={inflateReset:_7,inflateReset2:H7,inflateResetKeep:D7,inflateInit:I7,inflateInit2:O7,inflate:M7,inflateEnd:R7,inflateGetHeader:k7,inflateSetDictionary:P7,inflateInfo:K7};function j7(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var V7=j7;const YU=Object.prototype.toString,{Z_NO_FLUSH:G7,Z_FINISH:z7,Z_OK:Ch,Z_STREAM_END:Pm,Z_NEED_DICT:Km,Z_STREAM_ERROR:q7,Z_DATA_ERROR:Hb,Z_MEM_ERROR:X7}=DU;function Dh(e){this.options=IU.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l7,this.strm.avail_out=0;let A=ho.inflateInit2(this.strm,t.windowBits);if(A!==Ch)throw new Error(n2[A]);if(this.header=new V7,ho.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=r2.string2buf(t.dictionary):YU.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(A=ho.inflateSetDictionary(this.strm,t.dictionary),A!==Ch)))throw new Error(n2[A])}Dh.prototype.push=function(e,t){const A=this.strm,n=this.options.chunkSize,a=this.options.dictionary;let s,l,u;if(this.ended)return!1;for(t===~~t?l=t:l=t===!0?z7:G7,YU.call(e)==="[object ArrayBuffer]"?A.input=new Uint8Array(e):A.input=e,A.next_in=0,A.avail_in=A.input.length;;){for(A.avail_out===0&&(A.output=new Uint8Array(n),A.next_out=0,A.avail_out=n),s=ho.inflate(A,l),s===Km&&a&&(s=ho.inflateSetDictionary(A,a),s===Ch?s=ho.inflate(A,l):s===Hb&&(s=Km));A.avail_in>0&&s===Pm&&A.state.wrap>0&&e[A.next_in]!==0;)ho.inflateReset(A),s=ho.inflate(A,l);switch(s){case q7:case Hb:case Km:case X7:return this.onEnd(s),this.ended=!0,!1}if(u=A.avail_out,A.next_out&&(A.avail_out===0||s===Pm))if(this.options.to==="string"){let c=r2.utf8border(A.output,A.next_out),h=A.next_out-c,d=r2.buf2string(A.output,c);A.next_out=h,A.avail_out=n-h,h&&A.output.set(A.output.subarray(c,c+h),0),this.onData(d)}else this.onData(A.output.length===A.next_out?A.output:A.output.subarray(0,A.next_out));if(!(s===Ch&&u===0)){if(s===Pm)return s=ho.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(A.avail_in===0)break}}return!0};Dh.prototype.onData=function(e){this.chunks.push(e)};Dh.prototype.onEnd=function(e){e===Ch&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=IU.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Y7(e,t){const A=new Dh(t);if(A.push(e),A.err)throw A.msg||n2[A.err];return A.result}var W7=Dh,J7=Y7,Z7={Inflate:W7,inflate:J7};const{Inflate:$7,inflate:eR}=Z7;var Db=$7,tR=eR;const WU=[];for(let e=0;e<256;e++){let t=e;for(let A=0;A<8;A++)t&1?t=3988292384^t>>>1:t=t>>>1;WU[e]=t}const Ib=4294967295;function AR(e,t,A){let n=e;for(let a=0;a>>8;return n}function nR(e,t){return(AR(Ib,e,t)^Ib)>>>0}function Ob(e,t,A){const n=e.readUint32(),a=nR(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(a!==n)throw new Error(`CRC mismatch for chunk ${A}. Expected ${n}, found ${a}`)}function JU(e,t,A){for(let n=0;n>1)&255}else{for(;s>1)&255;for(;s>1)&255}}function tE(e,t,A,n,a){let s=0;if(A.length===0){for(;s=A||ne>=n))for(let ee=0;ee>8&255}const cR=new Uint16Array([255]),fR=new Uint8Array(cR.buffer),hR=fR[0]===255,dR=new Uint8Array(0);function Mb(e){const{data:t,width:A,height:n,channels:a,depth:s}=e,l=Math.ceil(s/8)*a,u=Math.ceil(s/8*a*A),c=new Uint8Array(n*u);let h=dR,d=0,B,y;for(let w=0;w>8&255}const Ep=Uint8Array.of(137,80,78,71,13,10,26,10);function Rb(e){if(!gR(e.readBytes(Ep.length)))throw new Error("wrong PNG signature")}function gR(e){if(e.length79)throw new Error("keyword length must be between 1 and 79")}const vR=/^[\u0000-\u00FF]*$/;function yR(e){if(!vR.test(e))throw new Error("invalid latin1 text")}function bR(e,t,A){const n=nE(t);e[n]=CR(t,A-n.length-1)}function nE(e){for(e.mark();e.readByte()!==BR;);const t=e.offset;e.reset();const A=AE.decode(e.readBytes(t-e.offset-1));return e.skip(1),wR(A),A}function CR(e,t){return AE.decode(e.readBytes(t))}const Ti={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},jm={UNKNOWN:-1,DEFLATE:0},kb={UNKNOWN:-1,ADAPTIVE:0},Vm={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},fp={NONE:0,BACKGROUND:1,PREVIOUS:2},Gm={SOURCE:0,OVER:1};class xR extends aB{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,A={}){super(t);const{checkCrc:n=!1}=A;this._checkCrc=n,this._inflator=new Db,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=jm.UNKNOWN,this._filterMethod=kb.UNKNOWN,this._interlaceMethod=Vm.UNKNOWN,this._colorType=Ti.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Rb(this);!this._end;){const t=this.readUint32(),A=this.readChars(4);this.decodeChunk(t,A)}return this.decodeImage(),this._png}decodeApng(){for(Rb(this);!this._end;){const t=this.readUint32(),A=this.readChars(4);this.decodeApngChunk(t,A)}return this.decodeApngImage(),this._apng}decodeChunk(t,A){const n=this.offset;switch(A){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case mR:bR(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${A}`);this._checkCrc?Ob(this,t+4,A):this.skip(4)}decodeApngChunk(t,A){const n=this.offset;switch(A!=="fdAT"&&A!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),A){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,A),this.offset=n+t;break}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${A}`);this._checkCrc?Ob(this,t+4,A):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=UR(this.readUint8());const A=this.readUint8();this._colorType=A;let n;switch(A){case Ti.GREYSCALE:n=1;break;case Ti.TRUECOLOUR:n=3;break;case Ti.INDEXED_COLOUR:n=1;break;case Ti.GREYSCALE_ALPHA:n=2;break;case Ti.TRUECOLOUR_ALPHA:n=4;break;case Ti.UNKNOWN:default:throw new Error(`Unknown color type: ${A}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==jm.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const A=t/3;this._hasPalette=!0;const n=[];this._palette=n;for(let a=0;athis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let A=0;Athis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let A=0;for(;A{const u=((s+A.yOffset)*this._png.width+A.xOffset+l)*this._png.channels,c=(s*A.width+l)*this._png.channels;return{index:u,frameIndex:c}};switch(A.blendOp){case Gm.SOURCE:for(let s=0;s=200&&t.status<=299}function hp(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var ru=Nt.saveAs||((typeof window>"u"?"undefined":UA(window))!=="object"||window!==Nt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,A){var n=Nt.URL||Nt.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener",typeof e=="string"?(a.href=e,a.origin!==location.origin?Kb(a.href)?qm(e,t,A):hp(a,a.target="_blank"):hp(a)):(a.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){hp(a)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,A){if(t=t||e.name||"download",typeof e=="string")if(Kb(e))qm(e,t,A);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){hp(n)})}else navigator.msSaveOrOpenBlob((function(a,s){return s===void 0?s={autoBom:!1}:UA(s)!=="object"&&(OA.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(e,A),t)}:function(e,t,A,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return qm(e,t,A);var a=e.type==="application/octet-stream",s=/constructor/i.test(Nt.HTMLElement)||Nt.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&s)&&(typeof FileReader>"u"?"undefined":UA(FileReader))==="object"){var u=new FileReader;u.onloadend=function(){var d=u.result;d=l?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=d:location=d,n=null},u.readAsDataURL(e)}else{var c=Nt.URL||Nt.webkitURL,h=c.createObjectURL(e);n?n.location=h:location.href=h,n=null,setTimeout(function(){c.revokeObjectURL(h)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function rE(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var u=this.r.toString(16),c=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),c.length==1&&(c="0"+c),h.length==1&&(h="0"+h),"#"+u+c+h}}var Qp=Nt.atob.bind(Nt),jb=Nt.btoa.bind(Nt);/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function Xm(e,t){var A=e[0],n=e[1],a=e[2],s=e[3];A=br(A,n,a,s,t[0],7,-680876936),s=br(s,A,n,a,t[1],12,-389564586),a=br(a,s,A,n,t[2],17,606105819),n=br(n,a,s,A,t[3],22,-1044525330),A=br(A,n,a,s,t[4],7,-176418897),s=br(s,A,n,a,t[5],12,1200080426),a=br(a,s,A,n,t[6],17,-1473231341),n=br(n,a,s,A,t[7],22,-45705983),A=br(A,n,a,s,t[8],7,1770035416),s=br(s,A,n,a,t[9],12,-1958414417),a=br(a,s,A,n,t[10],17,-42063),n=br(n,a,s,A,t[11],22,-1990404162),A=br(A,n,a,s,t[12],7,1804603682),s=br(s,A,n,a,t[13],12,-40341101),a=br(a,s,A,n,t[14],17,-1502002290),A=Cr(A,n=br(n,a,s,A,t[15],22,1236535329),a,s,t[1],5,-165796510),s=Cr(s,A,n,a,t[6],9,-1069501632),a=Cr(a,s,A,n,t[11],14,643717713),n=Cr(n,a,s,A,t[0],20,-373897302),A=Cr(A,n,a,s,t[5],5,-701558691),s=Cr(s,A,n,a,t[10],9,38016083),a=Cr(a,s,A,n,t[15],14,-660478335),n=Cr(n,a,s,A,t[4],20,-405537848),A=Cr(A,n,a,s,t[9],5,568446438),s=Cr(s,A,n,a,t[14],9,-1019803690),a=Cr(a,s,A,n,t[3],14,-187363961),n=Cr(n,a,s,A,t[8],20,1163531501),A=Cr(A,n,a,s,t[13],5,-1444681467),s=Cr(s,A,n,a,t[2],9,-51403784),a=Cr(a,s,A,n,t[7],14,1735328473),A=xr(A,n=Cr(n,a,s,A,t[12],20,-1926607734),a,s,t[5],4,-378558),s=xr(s,A,n,a,t[8],11,-2022574463),a=xr(a,s,A,n,t[11],16,1839030562),n=xr(n,a,s,A,t[14],23,-35309556),A=xr(A,n,a,s,t[1],4,-1530992060),s=xr(s,A,n,a,t[4],11,1272893353),a=xr(a,s,A,n,t[7],16,-155497632),n=xr(n,a,s,A,t[10],23,-1094730640),A=xr(A,n,a,s,t[13],4,681279174),s=xr(s,A,n,a,t[0],11,-358537222),a=xr(a,s,A,n,t[3],16,-722521979),n=xr(n,a,s,A,t[6],23,76029189),A=xr(A,n,a,s,t[9],4,-640364487),s=xr(s,A,n,a,t[12],11,-421815835),a=xr(a,s,A,n,t[15],16,530742520),A=Ur(A,n=xr(n,a,s,A,t[2],23,-995338651),a,s,t[0],6,-198630844),s=Ur(s,A,n,a,t[7],10,1126891415),a=Ur(a,s,A,n,t[14],15,-1416354905),n=Ur(n,a,s,A,t[5],21,-57434055),A=Ur(A,n,a,s,t[12],6,1700485571),s=Ur(s,A,n,a,t[3],10,-1894986606),a=Ur(a,s,A,n,t[10],15,-1051523),n=Ur(n,a,s,A,t[1],21,-2054922799),A=Ur(A,n,a,s,t[8],6,1873313359),s=Ur(s,A,n,a,t[15],10,-30611744),a=Ur(a,s,A,n,t[6],15,-1560198380),n=Ur(n,a,s,A,t[13],21,1309151649),A=Ur(A,n,a,s,t[4],6,-145523070),s=Ur(s,A,n,a,t[11],10,-1120210379),a=Ur(a,s,A,n,t[2],15,718787259),n=Ur(n,a,s,A,t[9],21,-343485551),e[0]=fl(A,e[0]),e[1]=fl(n,e[1]),e[2]=fl(a,e[2]),e[3]=fl(s,e[3])}function _g(e,t,A,n,a,s){return t=fl(fl(t,e),fl(n,s)),fl(t<>>32-a,A)}function br(e,t,A,n,a,s,l){return _g(t&A|~t&n,e,t,a,s,l)}function Cr(e,t,A,n,a,s,l){return _g(t&n|A&~n,e,t,a,s,l)}function xr(e,t,A,n,a,s,l){return _g(t^A^n,e,t,a,s,l)}function Ur(e,t,A,n,a,s,l){return _g(A^(t|~n),e,t,a,s,l)}function iE(e){var t,A=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Xm(n,QR(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(Xm(n,a),t=0;t<16;t++)a[t]=0;return a[14]=8*A,Xm(n,a),n}function QR(e){var t,A=[];for(t=0;t<64;t+=4)A[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return A}var Vb="0123456789abcdef".split("");function FR(e){for(var t="",A=0;A<4;A++)t+=Vb[e>>8*A+4&15]+Vb[e>>8*A&15];return t}function SR(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function i2(e){return iE(e).map(SR).join("")}var LR=(function(e){for(var t=0;t>16)+(t>>16)+(A>>16)<<16|65535&A}return e+t&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function a2(e,t){var A,n,a,s;if(e!==A){for(var l=(a=e,s=1+(256/e.length|0),new Array(s+1).join(a)),u=[],c=0;c<256;c++)u[c]=c;var h=0;for(c=0;c<256;c++){var d=u[c];h=(h+d+l.charCodeAt(c))%256,u[c]=u[h],u[h]=d}A=e,n=u}else u=n;var B=t.length,y=0,w=0,U="";for(c=0;c€/\f©þdSiz";var s=(t+this.padding).substr(0,32),l=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,l),this.P=-(1+(255^a)),this.encryptionKey=i2(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=a2(this.encryptionKey,this.padding)}function Uc(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",A=e.length,n=0;n126?"#"+("0"+a.toString(16)).slice(-2):e[n]}return t}function zb(e){if(UA(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,n,a){if(a=a||!1,typeof A!="string"||typeof n!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var s=Math.random().toString(35);return t[A][s]=[n,!!a],s},this.unsubscribe=function(A){for(var n in t)if(t[n][A])return delete t[n][A],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(A){if(t.hasOwnProperty(A)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var s in t[A]){var l=t[A][s];try{l[0].apply(e,n)}catch(u){Nt.console&&OA.error("jsPDF PubSub Error",u.message,u)}l[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function tg(e){if(!(this instanceof tg))return new tg(e);var t="opacity,stroke-opacity".split(",");for(var A in e)e.hasOwnProperty(A)&&t.indexOf(A)>=0&&(this[A]=e[A]);this.id="",this.objectNumber=-1}function aE(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function su(e,t,A,n,a){if(!(this instanceof su))return new su(e,t,A,n,a);this.type=e==="axial"?2:3,this.coords=t,this.colors=A,aE.call(this,n,a)}function Qc(e,t,A,n,a){if(!(this instanceof Qc))return new Qc(e,t,A,n,a);this.boundingBox=e,this.xStep=t,this.yStep=A,this.stream="",this.cloneIndex=0,aE.call(this,n,a)}function ft(e){var t,A=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],a=arguments[2],s=arguments[3],l=[],u=1,c=16,h="S",d=null;UA(e=e||{})==="object"&&(A=e.orientation,n=e.unit||n,a=e.format||a,s=e.compress||e.compressPdf||s,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),u=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),h=e.defaultPathOperation||"S"),l=e.filters||(s===!0?["FlateEncode"]:l),n=n||"mm",A=(""+(A||"P")).toLowerCase();var B=e.putOnlyUsedFonts||!1,y={},w={internal:{},__private__:{}};w.__private__.PubSub=zb;var U="1.3",x=w.__private__.getPdfVersion=function(){return U};w.__private__.setPdfVersion=function(b){U=b};var S={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};w.__private__.getPageFormats=function(){return S};var E=w.__private__.getPageFormat=function(b){return S[b]};a=a||"a4";var _="compat",H="advanced",D=_;function q(){this.saveGraphicsState(),te(new dt(Ht,0,0,-Ht,0,ba()*Ht).toString()+" cm"),this.setFontSize(this.getFontSize()/Ht),h="n",D=H}function ne(){this.restoreGraphicsState(),h="S",D=_}var ee=w.__private__.combineFontStyleAndFontWeight=function(b,T){if(b=="bold"&&T=="normal"||b=="bold"&&T==400||b=="normal"&&T=="italic"||b=="bold"&&T=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return T&&(b=T==400||T==="normal"?b==="italic"?"italic":"normal":T!=700&&T!=="bold"||b!=="normal"?(T==700?"bold":T)+""+b:"bold"),b};w.advancedAPI=function(b){var T=D===_;return T&&q.call(this),typeof b!="function"||(b(this),T&&ne.call(this)),this},w.compatAPI=function(b){var T=D===H;return T&&ne.call(this),typeof b!="function"||(b(this),T&&q.call(this)),this},w.isAdvancedAPI=function(){return D===H};var K,P=function(b){if(D!==H)throw new Error(b+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},le=w.roundToPrecision=w.__private__.roundToPrecision=function(b,T){var ie=t||T;if(isNaN(b)||isNaN(ie))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return b.toFixed(ie).replace(/0+$/,"")};K=w.hpf=w.__private__.hpf=typeof c=="number"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return le(b,c)}:c==="smart"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return le(b,b>-1&&b<1?16:5)}:function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return le(b,16)};var I=w.f2=w.__private__.f2=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f2");return le(b,2)},j=w.__private__.f3=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f3");return le(b,3)},ae=w.scale=w.__private__.scale=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.scale");return D===_?b*Ht:D===H?b:void 0},W=function(b){return ae((function(T){return D===_?ba()-T:D===H?T:void 0})(b))};w.__private__.setPrecision=w.setPrecision=function(b){typeof parseInt(b,10)=="number"&&(t=parseInt(b,10))};var ge,J="00000000000000000000000000000000",se=w.__private__.getFileId=function(){return J},X=w.__private__.setFileId=function(b){return J=b!==void 0&&/^[a-fA-F0-9]{32}$/.test(b)?b.toUpperCase():J.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(vn=new xc(d.userPermissions,d.userPassword,d.ownerPassword,J)),J};w.setFileId=function(b){return X(b),this},w.getFileId=function(){return se()};var me=w.__private__.convertDateToPDFDate=function(b){var T=b.getTimezoneOffset(),ie=T<0?"+":"-",he=Math.floor(Math.abs(T/60)),we=Math.abs(T%60),De=[ie,G(he),"'",G(we),"'"].join("");return["D:",b.getFullYear(),G(b.getMonth()+1),G(b.getDate()),G(b.getHours()),G(b.getMinutes()),G(b.getSeconds()),De].join("")},Se=w.__private__.convertPDFDateToDate=function(b){var T=parseInt(b.substr(2,4),10),ie=parseInt(b.substr(6,2),10)-1,he=parseInt(b.substr(8,2),10),we=parseInt(b.substr(10,2),10),De=parseInt(b.substr(12,2),10),ke=parseInt(b.substr(14,2),10);return new Date(T,ie,he,we,De,ke,0)},z=w.__private__.setCreationDate=function(b){var T;if(b===void 0&&(b=new Date),b instanceof Date)T=me(b);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(b))throw new Error("Invalid argument passed to jsPDF.setCreationDate");T=b}return ge=T},L=w.__private__.getCreationDate=function(b){var T=ge;return b==="jsDate"&&(T=Se(ge)),T};w.setCreationDate=function(b){return z(b),this},w.getCreationDate=function(b){return L(b)};var M,G=w.__private__.padd2=function(b){return("0"+parseInt(b)).slice(-2)},oe=w.__private__.padd2Hex=function(b){return("00"+(b=b.toString())).substr(b.length)},ue=0,fe=[],Qe=[],xe=0,_e=[],Ke=[],Ge=!1,ze=Qe;w.__private__.setCustomOutputDestination=function(b){Ge=!0,ze=b};var at=function(b){Ge||(ze=b)};w.__private__.resetCustomOutputDestination=function(){Ge=!1,ze=Qe};var te=w.__private__.out=function(b){return b=b.toString(),xe+=b.length+1,ze.push(b),ze},qe=w.__private__.write=function(b){return te(arguments.length===1?b.toString():Array.prototype.join.call(arguments," "))},Kt=w.__private__.getArrayBuffer=function(b){for(var T=b.length,ie=new ArrayBuffer(T),he=new Uint8Array(ie);T--;)he[T]=b.charCodeAt(T);return ie},vt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];w.__private__.getStandardFonts=function(){return vt};var Pe=e.fontSize||16;w.__private__.setFontSize=w.setFontSize=function(b){return Pe=D===H?b/Ht:b,this};var gt,Ze=w.__private__.getFontSize=w.getFontSize=function(){return D===_?Pe:Pe*Ht},yt=e.R2L||!1;w.__private__.setR2L=w.setR2L=function(b){return yt=b,this},w.__private__.getR2L=w.getR2L=function(){return yt};var ht,Dt=w.__private__.setZoomMode=function(b){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(b))gt=b;else if(isNaN(b)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(b)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+b+'" is not recognized.');gt=b}else gt=parseInt(b,10)};w.__private__.getZoomMode=function(){return gt};var Xt,_t=w.__private__.setPageMode=function(b){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(b)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+b+'" is not recognized.');ht=b};w.__private__.getPageMode=function(){return ht};var Yt=w.__private__.setLayoutMode=function(b){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(b)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+b+'" is not recognized.');Xt=b};w.__private__.getLayoutMode=function(){return Xt},w.__private__.setDisplayMode=w.setDisplayMode=function(b,T,ie){return Dt(b),Yt(T),_t(ie),this};var jt={title:"",subject:"",author:"",keywords:"",creator:""};w.__private__.getDocumentProperty=function(b){if(Object.keys(jt).indexOf(b)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return jt[b]},w.__private__.getDocumentProperties=function(){return jt},w.__private__.setDocumentProperties=w.setProperties=w.setDocumentProperties=function(b){for(var T in jt)jt.hasOwnProperty(T)&&b[T]&&(jt[T]=b[T]);return this},w.__private__.setDocumentProperty=function(b,T){if(Object.keys(jt).indexOf(b)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return jt[b]=T};var st,Ht,ut,en,zt,bt={},Ft={},Wt=[],mt={},EA={},Ut={},St={},vA=null,kt=0,ct=[],rA=new zb(w),hi=e.hotfixes||[],Wn={},Oi={},Vr=[],dt=function b(T,ie,he,we,De,ke){if(!(this instanceof b))return new b(T,ie,he,we,De,ke);isNaN(T)&&(T=1),isNaN(ie)&&(ie=0),isNaN(he)&&(he=0),isNaN(we)&&(we=1),isNaN(De)&&(De=0),isNaN(ke)&&(ke=0),this._matrix=[T,ie,he,we,De,ke]};Object.defineProperty(dt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(dt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(dt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(dt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(dt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(dt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(dt.prototype,"a",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(dt.prototype,"b",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(dt.prototype,"c",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(dt.prototype,"d",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(dt.prototype,"e",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(dt.prototype,"f",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(dt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(dt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(dt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(dt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),dt.prototype.join=function(b){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(K).join(b)},dt.prototype.multiply=function(b){var T=b.sx*this.sx+b.shy*this.shx,ie=b.sx*this.shy+b.shy*this.sy,he=b.shx*this.sx+b.sy*this.shx,we=b.shx*this.shy+b.sy*this.sy,De=b.tx*this.sx+b.ty*this.shx+this.tx,ke=b.tx*this.shy+b.ty*this.sy+this.ty;return new dt(T,ie,he,we,De,ke)},dt.prototype.decompose=function(){var b=this.sx,T=this.shy,ie=this.shx,he=this.sy,we=this.tx,De=this.ty,ke=Math.sqrt(b*b+T*T),et=(b/=ke)*ie+(T/=ke)*he;ie-=b*et,he-=T*et;var ot=Math.sqrt(ie*ie+he*he);return et/=ot,b*(he/=ot)>16&255,he=ot>>8&255,we=255&ot}if(he===void 0||De===void 0&&ie===he&&he===we)T=typeof ie=="string"?ie+" "+ke[0]:b.precision===2?I(ie/255)+" "+ke[0]:j(ie/255)+" "+ke[0];else if(De===void 0||UA(De)==="object"){if(De&&!isNaN(De.a)&&De.a===0)return["1.","1.","1.",ke[1]].join(" ");T=typeof ie=="string"?[ie,he,we,ke[1]].join(" "):b.precision===2?[I(ie/255),I(he/255),I(we/255),ke[1]].join(" "):[j(ie/255),j(he/255),j(we/255),ke[1]].join(" ")}else T=typeof ie=="string"?[ie,he,we,De,ke[2]].join(" "):b.precision===2?[I(ie),I(he),I(we),I(De),ke[2]].join(" "):[j(ie),j(he),j(we),j(De),ke[2]].join(" ");return T},Nr=w.__private__.getFilters=function(){return l},Gr=w.__private__.putStream=function(b){var T=(b=b||{}).data||"",ie=b.filters||Nr(),he=b.alreadyAppliedFilters||[],we=b.addLength1||!1,De=T.length,ke=b.objectId,et=function(yn){return yn};if(d!==null&&ke===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(et=vn.encryptor(ke,0));var ot={};ie===!0&&(ie=["FlateEncode"]);var Qt=b.additionalKeyValues||[],It=(ot=ft.API.processDataByFilters!==void 0?ft.API.processDataByFilters(T,ie):{data:T,reverseChain:[]}).reverseChain+(Array.isArray(he)?he.join(" "):he.toString());if(ot.data.length!==0&&(Qt.push({key:"Length",value:ot.data.length}),we===!0&&Qt.push({key:"Length1",value:De})),It.length!=0)if(It.split("/").length-1==1)Qt.push({key:"Filter",value:It});else{Qt.push({key:"Filter",value:"["+It+"]"});for(var iA=0;iA>"),ot.data.length!==0&&(te("stream"),te(et(ot.data)),te("endstream"))},Hs=w.__private__.putPage=function(b){var T=b.number,ie=b.data,he=b.objId,we=b.contentsObjId;Ln(he,!0),te("<>"),te("endobj");var De=ie.join(` `);return D===H&&(De+=` Q`),Ln(we,!0),Gr({data:De,filters:Nr(),objectId:we}),te("endobj"),he},di=w.__private__.putPages=function(){var b,T,ie=[];for(b=1;b<=kt;b++)ct[b].objId=ln(),ct[b].contentsObjId=ln();for(b=1;b<=kt;b++)ie.push(Hs({number:b,data:Ke[b],objId:ct[b].objId,contentsObjId:ct[b].contentsObjId,mediaBox:ct[b].mediaBox,cropBox:ct[b].cropBox,bleedBox:ct[b].bleedBox,trimBox:ct[b].trimBox,artBox:ct[b].artBox,userUnit:ct[b].userUnit,rootDictionaryObjId:ar,resourceDictionaryObjId:yA}));Ln(ar,!0),te("<>"),te("endobj"),rA.publish("postPutPages")},pi=function(b){rA.publish("putFont",{font:b,out:te,newObject:MA,putStream:Gr}),b.isAlreadyPutted!==!0&&(b.objectNumber=MA(),te("<<"),te("/Type /Font"),te("/BaseFont /"+Uc(b.postScriptName)),te("/Subtype /Type1"),typeof b.encoding=="string"&&te("/Encoding /"+b.encoding),te("/FirstChar 32"),te("/LastChar 255"),te(">>"),te("endobj"))},Za=function(b){b.objectNumber=MA();var T=[];T.push({key:"Type",value:"/XObject"}),T.push({key:"Subtype",value:"/Form"}),T.push({key:"BBox",value:"["+[K(b.x),K(b.y),K(b.x+b.width),K(b.y+b.height)].join(" ")+"]"}),T.push({key:"Matrix",value:"["+b.matrix.toString()+"]"});var ie=b.pages[1].join(` `);Gr({data:ie,additionalKeyValues:T,objectId:b.objectNumber}),te("endobj")},gi=function(b,T){T||(T=21);var ie=MA(),he=(function(ke,et){var ot,Qt=[],It=1/(et-1);for(ot=0;ot<1;ot+=It)Qt.push(ot);if(Qt.push(1),ke[0].offset!=0){var iA={offset:0,color:ke[0].color};ke.unshift(iA)}if(ke[ke.length-1].offset!=1){var PA={offset:1,color:ke[ke.length-1].color};ke.push(PA)}for(var An="",QA=0,yn=0;ynke[QA+1].offset;)QA++;var cn=ke[QA].offset,Rn=(ot-cn)/(ke[QA+1].offset-cn),Ca=ke[QA].color,bi=ke[QA+1].color;An+=oe(Math.round((1-Rn)*Ca[0]+Rn*bi[0]).toString(16))+oe(Math.round((1-Rn)*Ca[1]+Rn*bi[1]).toString(16))+oe(Math.round((1-Rn)*Ca[2]+Rn*bi[2]).toString(16))}return An.trim()})(b.colors,T),we=[];we.push({key:"FunctionType",value:"0"}),we.push({key:"Domain",value:"[0.0 1.0]"}),we.push({key:"Size",value:"["+T+"]"}),we.push({key:"BitsPerSample",value:"8"}),we.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),we.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Gr({data:he,additionalKeyValues:we,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ie}),te("endobj"),b.objectNumber=MA(),te("<< /ShadingType "+b.type),te("/ColorSpace /DeviceRGB");var De="/Coords ["+K(parseFloat(b.coords[0]))+" "+K(parseFloat(b.coords[1]))+" ";b.type===2?De+=K(parseFloat(b.coords[2]))+" "+K(parseFloat(b.coords[3])):De+=K(parseFloat(b.coords[2]))+" "+K(parseFloat(b.coords[3]))+" "+K(parseFloat(b.coords[4]))+" "+K(parseFloat(b.coords[5])),te(De+="]"),b.matrix&&te("/Matrix ["+b.matrix.toString()+"]"),te("/Function "+ie+" 0 R"),te("/Extend [true true]"),te(">>"),te("endobj")},mi=function(b,T){var ie=ln(),he=MA();T.push({resourcesOid:ie,objectOid:he}),b.objectNumber=he;var we=[];we.push({key:"Type",value:"/Pattern"}),we.push({key:"PatternType",value:"1"}),we.push({key:"PaintType",value:"1"}),we.push({key:"TilingType",value:"1"}),we.push({key:"BBox",value:"["+b.boundingBox.map(K).join(" ")+"]"}),we.push({key:"XStep",value:K(b.xStep)}),we.push({key:"YStep",value:K(b.yStep)}),we.push({key:"Resources",value:ie+" 0 R"}),b.matrix&&we.push({key:"Matrix",value:"["+b.matrix.toString()+"]"}),Gr({data:b.stream,additionalKeyValues:we,objectId:b.objectNumber}),te("endobj")},Ds=function(b){for(var T in b.objectNumber=MA(),te("<<"),b)switch(T){case"opacity":te("/ca "+I(b[T]));break;case"stroke-opacity":te("/CA "+I(b[T]))}te(">>"),te("endobj")},Ri=function(b){Ln(b.resourcesOid,!0),te("<<"),te("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var T in te("/Font <<"),bt)bt.hasOwnProperty(T)&&(B===!1||B===!0&&y.hasOwnProperty(T))&&te("/"+T+" "+bt[T].objectNumber+" 0 R");te(">>")})(),(function(){if(Object.keys(mt).length>0){for(var T in te("/Shading <<"),mt)mt.hasOwnProperty(T)&&mt[T]instanceof su&&mt[T].objectNumber>=0&&te("/"+T+" "+mt[T].objectNumber+" 0 R");rA.publish("putShadingPatternDict"),te(">>")}})(),(function(T){if(Object.keys(mt).length>0){for(var ie in te("/Pattern <<"),mt)mt.hasOwnProperty(ie)&&mt[ie]instanceof w.TilingPattern&&mt[ie].objectNumber>=0&&mt[ie].objectNumber>")}})(b.objectOid),(function(){if(Object.keys(Ut).length>0){var T;for(T in te("/ExtGState <<"),Ut)Ut.hasOwnProperty(T)&&Ut[T].objectNumber>=0&&te("/"+T+" "+Ut[T].objectNumber+" 0 R");rA.publish("putGStateDict"),te(">>")}})(),(function(){for(var T in te("/XObject <<"),Wn)Wn.hasOwnProperty(T)&&Wn[T].objectNumber>=0&&te("/"+T+" "+Wn[T].objectNumber+" 0 R");rA.publish("putXobjectDict"),te(">>")})(),te(">>"),te("endobj")},tn=function(b){Ft[b.fontName]=Ft[b.fontName]||{},Ft[b.fontName][b.fontStyle]=b.id},Cl=function(b,T,ie,he,we){var De={id:"F"+(Object.keys(bt).length+1).toString(10),postScriptName:b,fontName:T,fontStyle:ie,encoding:he,isStandardFont:we||!1,metadata:{}};return rA.publish("addFont",{font:De,instance:this}),bt[De.id]=De,tn(De),De.id},_r=w.__private__.pdfEscape=w.pdfEscape=function(b,T){return(function(ie,he){var we,De,ke,et,ot,Qt,It,iA,PA;if(ke=(he=he||{}).sourceEncoding||"Unicode",ot=he.outputEncoding,(he.autoencode||ot)&&bt[st].metadata&&bt[st].metadata[ke]&&bt[st].metadata[ke].encoding&&(et=bt[st].metadata[ke].encoding,!ot&&bt[st].encoding&&(ot=bt[st].encoding),!ot&&et.codePages&&(ot=et.codePages[0]),typeof ot=="string"&&(ot=et[ot]),ot)){for(It=!1,Qt=[],we=0,De=ie.length;we>8&&(It=!0);ie=Qt.join("")}for(we=ie.length;It===void 0&&we!==0;)ie.charCodeAt(we-1)>>8&&(It=!0),we--;if(!It)return ie;for(Qt=he.noBOM?[]:[254,255],we=0,De=ie.length;we>8)>>8)throw new Error("Character at position "+we+" of string '"+ie+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Qt.push(PA),Qt.push(iA-(PA<<8))}return String.fromCharCode.apply(void 0,Qt)})(b,T).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Bi=w.__private__.beginPage=function(b){Ke[++kt]=[],ct[kt]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(b[0]),topRightY:Number(b[1])}},Ul(kt),at(Ke[M])},da=function(b,T){var ie,he,we;switch(A=T||A,typeof b=="string"&&(ie=E(b.toLowerCase()),Array.isArray(ie)&&(he=ie[0],we=ie[1])),Array.isArray(b)&&(he=b[0]*Ht,we=b[1]*Ht),isNaN(he)&&(he=a[0],we=a[1]),(he>14400||we>14400)&&(OA.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),he=Math.min(14400,he),we=Math.min(14400,we)),a=[he,we],A.substr(0,1)){case"l":we>he&&(a=[we,he]);break;case"p":he>we&&(a=[we,he])}Bi(a),Ct(Os),te(Ir),Co!==0&&te(Co+" J"),Tn!==0&&te(Tn+" j"),rA.publish("addPage",{pageNumber:kt})},xl=function(b){b>0&&b<=kt&&(Ke.splice(b,1),ct.splice(b,1),kt--,M>kt&&(M=kt),this.setPage(M))},Ul=function(b){b>0&&b<=kt&&(M=b)},El=w.__private__.getNumberOfPages=w.getNumberOfPages=function(){return Ke.length-1},yu=function(b,T,ie){var he,we=void 0;return ie=ie||{},b=b!==void 0?b:bt[st].fontName,T=T!==void 0?T:bt[st].fontStyle,he=b.toLowerCase(),Ft[he]!==void 0&&Ft[he][T]!==void 0?we=Ft[he][T]:Ft[b]!==void 0&&Ft[b][T]!==void 0?we=Ft[b][T]:ie.disableWarning===!1&&OA.warn("Unable to look up font label for font '"+b+"', '"+T+"'. Refer to getFontList() for available fonts."),we||ie.noFallback||(we=Ft.times[T])==null&&(we=Ft.times.normal),we},Hr=w.__private__.putInfo=function(){var b=MA(),T=function(he){return he};for(var ie in d!==null&&(T=vn.encryptor(b,0)),te("<<"),te("/Producer ("+_r(T("jsPDF "+ft.version))+")"),jt)jt.hasOwnProperty(ie)&&jt[ie]&&te("/"+ie.substr(0,1).toUpperCase()+ie.substr(1)+" ("+_r(T(jt[ie]))+")");te("/CreationDate ("+_r(T(ge))+")"),te(">>"),te("endobj")},pa=w.__private__.putCatalog=function(b){var T=(b=b||{}).rootDictionaryObjId||ar;switch(MA(),te("<<"),te("/Type /Catalog"),te("/Pages "+T+" 0 R"),gt||(gt="fullwidth"),gt){case"fullwidth":te("/OpenAction [3 0 R /FitH null]");break;case"fullheight":te("/OpenAction [3 0 R /FitV null]");break;case"fullpage":te("/OpenAction [3 0 R /Fit]");break;case"original":te("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ie=""+gt;ie.substr(ie.length-1)==="%"&&(gt=parseInt(gt)/100),typeof gt=="number"&&te("/OpenAction [3 0 R /XYZ null null "+I(gt)+"]")}switch(Xt||(Xt="continuous"),Xt){case"continuous":te("/PageLayout /OneColumn");break;case"single":te("/PageLayout /SinglePage");break;case"two":case"twoleft":te("/PageLayout /TwoColumnLeft");break;case"tworight":te("/PageLayout /TwoColumnRight")}ht&&te("/PageMode /"+ht),rA.publish("putCatalog"),te(">>"),te("endobj")},wi=w.__private__.putTrailer=function(){te("trailer"),te("<<"),te("/Size "+(ue+1)),te("/Root "+ue+" 0 R"),te("/Info "+(ue-1)+" 0 R"),d!==null&&te("/Encrypt "+vn.oid+" 0 R"),te("/ID [ <"+J+"> <"+J+"> ]"),te(">>")},cA=w.__private__.putHeader=function(){te("%PDF-"+U),te("%ºß¬à")},Ql=w.__private__.putXRef=function(){var b="0000000000";te("xref"),te("0 "+(ue+1)),te("0000000000 65535 f ");for(var T=1;T<=ue;T++)typeof fe[T]=="function"?te((b+fe[T]()).slice(-10)+" 00000 n "):fe[T]!==void 0?te((b+fe[T]).slice(-10)+" 00000 n "):te("0000000000 00000 n ")},ki=w.__private__.buildDocument=function(){var b;ue=0,xe=0,Qe=[],fe=[],_e=[],ar=ln(),yA=ln(),at(Qe),rA.publish("buildDocument"),cA(),di(),(function(){rA.publish("putAdditionalObjects");for(var ie=0;ie<_e.length;ie++){var he=_e[ie];Ln(he.objId,!0),te(he.content),te("endobj")}rA.publish("postPutAdditionalObjects")})(),b=[],(function(){for(var ie in bt)bt.hasOwnProperty(ie)&&(B===!1||B===!0&&y.hasOwnProperty(ie))&&pi(bt[ie])})(),(function(){var ie;for(ie in Ut)Ut.hasOwnProperty(ie)&&Ds(Ut[ie])})(),(function(){for(var ie in Wn)Wn.hasOwnProperty(ie)&&Za(Wn[ie])})(),(function(ie){var he;for(he in mt)mt.hasOwnProperty(he)&&(mt[he]instanceof su?gi(mt[he]):mt[he]instanceof Qc&&mi(mt[he],ie))})(b),rA.publish("putResources"),b.forEach(Ri),Ri({resourcesOid:yA,objectOid:Number.MAX_SAFE_INTEGER}),rA.publish("postPutResources"),d!==null&&(vn.oid=MA(),te("<<"),te("/Filter /Standard"),te("/V "+vn.v),te("/R "+vn.r),te("/U <"+vn.toHexString(vn.U)+">"),te("/O <"+vn.toHexString(vn.O)+">"),te("/P "+vn.P),te(">>"),te("endobj")),Hr(),pa();var T=xe;return Ql(),wi(),te("startxref"),te(""+T),te("%%EOF"),at(Ke[M]),Qe.join(` `)},$a=w.__private__.getBlob=function(b){return new Blob([Kt(b)],{type:"application/pdf"})},Fl=w.output=w.__private__.output=(Tr=function(b,T){switch(typeof(T=T||{})=="string"?T={filename:T}:T.filename=T.filename||"generated.pdf",b){case void 0:return ki();case"save":w.save(T.filename);break;case"arraybuffer":return Kt(ki());case"blob":return $a(ki());case"bloburi":case"bloburl":if(Nt.URL!==void 0&&typeof Nt.URL.createObjectURL=="function")return Nt.URL&&Nt.URL.createObjectURL($a(ki()))||void 0;OA.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ie="",he=ki();try{ie=jb(he)}catch{ie=jb(unescape(encodeURIComponent(he)))}return"data:application/pdf;filename="+T.filename+";base64,"+ie;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Nt)==="[object Window]"){var we="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",De=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';T.pdfObjectUrl&&(we=T.pdfObjectUrl,De="");var ke='